@woocommerce/data
Version:
WooCommerce Admin data store and utilities
28 lines (27 loc) • 914 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getShippingMethodsError = exports.getShippingMethodsSuccess = exports.getShippingMethodsRequest = void 0;
/**
* Internal dependencies
*/
const action_types_1 = require("./action-types");
function getShippingMethodsRequest() {
return {
type: action_types_1.ACTION_TYPES.GET_SHIPPING_METHODS_REQUEST,
};
}
exports.getShippingMethodsRequest = getShippingMethodsRequest;
function getShippingMethodsSuccess(shippingMethods) {
return {
type: action_types_1.ACTION_TYPES.GET_SHIPPING_METHODS_SUCCESS,
shippingMethods,
};
}
exports.getShippingMethodsSuccess = getShippingMethodsSuccess;
function getShippingMethodsError(error) {
return {
type: action_types_1.ACTION_TYPES.GET_SHIPPING_METHODS_ERROR,
error,
};
}
exports.getShippingMethodsError = getShippingMethodsError;