Function
Static Public Summary | ||
public |
addToCart(productId: *): {"type": *, "productId": *} |
|
public |
checkout(): {"type": *} |
|
public |
checkout(action$: *, store: *): any | * | Observable checkout epic. |
|
public |
checkoutFailure(error: *): {"type": *, "error": *} |
|
public |
checkoutSuccess(cart: *): {"type": *, "cart": *} |
|
public |
getAllProducts(): {"type": *} |
|
public |
products(state: *[], action: *): * |
|
public |
receiveProducts(products: *): {"type": *, "products": *} |
|
public |
removeFromCart(productId: *): {"type": *, "productId": *} |
|
public |
rootReducer(state: *, action: *): * Returns the combined reducer. |
|
public |
searchProducts(action$: *, store: *): any | * | Observable search products epic |
Static Public
public addToCart(productId: *): {"type": *, "productId": *} source
import {addToCart} from 'reactnativeapp/src/modules/product/redux/product.actions.js'
Params:
Name | Type | Attribute | Description |
productId | * |
Return:
{"type": *, "productId": *} |
public checkout(): {"type": *} source
import {checkout} from 'reactnativeapp/src/modules/product/redux/product.actions.js'
Return:
{"type": *} |
public checkout(action$: *, store: *): any | * | Observable source
import {checkout} from 'reactnativeapp/src/modules/product/redux/product.effects.js'
checkout epic.
Params:
Name | Type | Attribute | Description |
action$ | * | ||
store | * |
Return:
any | * | Observable |
public checkoutFailure(error: *): {"type": *, "error": *} source
import {checkoutFailure} from 'reactnativeapp/src/modules/product/redux/product.actions.js'
Params:
Name | Type | Attribute | Description |
error | * |
Return:
{"type": *, "error": *} |
public checkoutSuccess(cart: *): {"type": *, "cart": *} source
import {checkoutSuccess} from 'reactnativeapp/src/modules/product/redux/product.actions.js'
Params:
Name | Type | Attribute | Description |
cart | * |
Return:
{"type": *, "cart": *} |
public getAllProducts(): {"type": *} source
import {getAllProducts} from 'reactnativeapp/src/modules/product/redux/product.actions.js'
Return:
{"type": *} |
public products(state: *[], action: *): * source
import {products} from 'reactnativeapp/src/modules/product/redux/product.reducer.js'
Params:
Name | Type | Attribute | Description |
state | *[] |
|
|
action | * |
Return:
* |
public receiveProducts(products: *): {"type": *, "products": *} source
import {receiveProducts} from 'reactnativeapp/src/modules/product/redux/product.actions.js'
Params:
Name | Type | Attribute | Description |
products | * |
Return:
{"type": *, "products": *} |
public removeFromCart(productId: *): {"type": *, "productId": *} source
import {removeFromCart} from 'reactnativeapp/src/modules/product/redux/product.actions.js'
Params:
Name | Type | Attribute | Description |
productId | * |
Return:
{"type": *, "productId": *} |
public rootReducer(state: *, action: *): * source
import {rootReducer} from 'reactnativeapp/src/common/redux/root-reducer.js'
Returns the combined reducer.
Params:
Name | Type | Attribute | Description |
state | * | ||
action | * |
Return:
* |
public searchProducts(action$: *, store: *): any | * | Observable source
import {searchProducts} from 'reactnativeapp/src/modules/product/redux/product.effects.js'
search products epic
Params:
Name | Type | Attribute | Description |
action$ | * | ||
store | * |
Return:
any | * | Observable |