UNPKG

@woocommerce/data

Version:
28 lines (27 loc) 914 B
"use strict"; 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;