/** * @typedef {import('./cart').CartData} CartData * @typedef {import('./cart').CartShippingAddress} CartShippingAddress */ /** * @typedef {Object} StoreCart * * @property {Array} cartCoupons An array of coupons applied * to the cart. * @property {Array} cartItems An array of items in the * cart. * @property {number} cartItemsCount The number of items in the * cart. * @property {number} cartItemsWeight The weight of all items in * the cart. * @property {boolean} cartNeedsPayment True when the cart will * require payment. * @property {boolean} cartNeedsShipping True when the cart will * require shipping. * @property {Array} cartItemErrors Item validation errors. * @property {Object} cartTotals Cart and line total * amounts. * @property {boolean} cartIsLoading True when cart data is * being loaded. * @property {Array} cartErrors An array of errors thrown * by the cart. * @property {CartShippingAddress} shippingAddress Shipping address for the * cart. * @property {Array} shippingRates array of selected shipping * rates. * @property {boolean} shippingRatesLoading Whether or not the * shipping rates are * being loaded. * @property {boolean} hasShippingAddress Whether or not the cart * has a shipping address yet. * @property {function(Object):any} receiveCart Dispatcher to receive * updated cart. */ /** * @typedef {Object} StoreCartCoupon * * @property {Array} appliedCoupons Collection of applied coupons from the * API. * @property {boolean} isLoading True when coupon data is being loaded. * @property {Function} applyCoupon Callback for applying a coupon by code. * @property {Function} removeCoupon Callback for removing a coupon by code. * @property {boolean} isApplyingCoupon True when a coupon is being applied. * @property {boolean} isRemovingCoupon True when a coupon is being removed. */ /** * @typedef {Object} StoreCartItemAddToCart * * @property {number} cartQuantity The quantity of the item in the * cart. * @property {boolean} addingToCart Whether the cart item is still * being added or not. * @property {boolean} cartIsLoading Whether the cart is being loaded. * @property {Function} addToCart Callback for adding a cart item. */ /** * @typedef {Object} StoreCartItemQuantity * * @property {number} quantity The quantity of the item in the * cart. * @property {boolean} isPendingDelete Whether the cart item is being * deleted or not. * @property {Function} changeQuantity Callback for changing quantity * of item in cart. * @property {Function} removeItem Callback for removing a cart item. * @property {Object} cartItemQuantityErrors An array of errors thrown by * the cart. */ /** * @typedef {Object} EmitResponseTypes * * @property {string} SUCCESS To indicate a success response. * @property {string} FAIL To indicate a failed response. * @property {string} ERROR To indicate an error response. */ /** * @typedef {Object} NoticeContexts * * @property {string} PAYMENTS Notices for the payments step. * @property {string} EXPRESS_PAYMENTS Notices for the express payments step. */ /* eslint-disable jsdoc/valid-types */ // Enum format below triggers the above rule even though VSCode interprets it fine. /** * @typedef {NoticeContexts['PAYMENTS']|NoticeContexts['EXPRESS_PAYMENTS']} NoticeContextsEnum */ /** * @typedef {Object} EmitSuccessResponse * * @property {EmitResponseTypes['SUCCESS']} type Should have the value of * EmitResponseTypes.SUCCESS. * @property {string} [redirectUrl] If the redirect url should be changed set * this. Note, this is ignored for some * emitters. * @property {Object} [meta] Additional data returned for the success * response. This varies between context * emitters. */ /** * @typedef {Object} EmitFailResponse * * @property {EmitResponseTypes['FAIL']} type Should have the value of * EmitResponseTypes.FAIL * @property {string} message A message to trigger a notice for. * @property {NoticeContextsEnum} [messageContext] What context to display any message in. * @property {Object} [meta] Additional data returned for the fail * response. This varies between context * emitters. */ /** * @typedef {Object} EmitErrorResponse * * @property {EmitResponseTypes['ERROR']} type Should have the value of * EmitResponseTypes.ERROR * @property {string} message A message to trigger a notice for. * @property {boolean} retry If false, then it means an * irrecoverable error so don't allow for * shopper to retry checkout (which may * mean either a different payment or * fixing validation errors). * @property {Object} [validationErrors] If provided, will be set as validation * errors in the validation context. * @property {NoticeContextsEnum} [messageContext] What context to display any message in. * @property {Object} [meta] Additional data returned for the fail * response. This varies between context * emitters. */ /* eslint-enable jsdoc/valid-types */ /** * @typedef {Object} EmitResponseApi * * @property {EmitResponseTypes} responseTypes An object of various response types that can * be used in returned response objects. * @property {NoticeContexts} noticeContexts An object of various notice contexts that can * be used for targeting where a notice appears. * @property {function(Object):boolean} shouldRetry Returns whether the user is allowed to retry * the payment after a failed one. * @property {function(Object):boolean} isSuccessResponse Returns whether the given response is of a * success response type. * @property {function(Object):boolean} isErrorResponse Returns whether the given response is of an * error response type. * @property {function(Object):boolean} isFailResponse Returns whether the given response is of a * fail response type. */ export {}; /** * Internal dependencies */ import { ACTION_TYPES as types } from './action-types'; /** * Action creator for setting a single query-state value for a given context. * * @param {string} context Context for query state being stored. * @param {string} queryKey Key for query item. * @param {*} value The value for the query item. * * @return {Object} The action object. */ export const setQueryValue = ( context, queryKey, value ) => { return { type: types.SET_QUERY_KEY_VALUE, context, queryKey, value, }; }; /** * Action creator for setting query-state for a given context. * * @param {string} context Context for query state being stored. * @param {*} value Query state being stored for the given context. * * @return {Object} The action object. */ export const setValueForQueryContext = ( context, value ) => { return { type: types.SET_QUERY_CONTEXT_VALUE, context, value, }; };

Cửa Hàng Phụ Kiện Camera

Phụ kiện camera đa dạng, chính hãng, giá tốt

{"id":8590,"date":"2021-02-05T10:38:13","date_gmt":"2021-02-05T10:38:13","guid":{"rendered":"https:\/\/phukiencamera.top\/khong-phan-loai\/chinh-sach-bao-mat"},"modified":"2021-02-05T10:38:13","modified_gmt":"2021-02-05T10:38:13","slug":"chinh-sach-bao-mat","status":"publish","type":"post","link":"https:\/\/phukiencamera.top\/chinh-sach-bao-mat\/","title":{"rendered":"Ch\u00ednh s\u00e1ch b\u1ea3o m\u1eadt"},"content":{"rendered":"

\tTh\u00f4ng tin ch\u00fang t\u00f4i thu th\u1eadp bao g\u1ed3m<\/h3>\n

\t\u2713T\u00ean<\/p>\n

\t\u2713 \u0110\u1ecba ch\u1ec9<\/p>\n

\t\u2713S\u1ed1 \u0111i\u1ec7n tho\u1ea1i<\/p>\n

\t\u2713Email<\/p>\n

\tCh\u00fang t\u00f4i thu th\u1eadp th\u00f4ng tin \u0111\u1ec3<\/h3>\n

\t\u2713Ph\u1ee5c v\u1ee5 cho vi\u1ec7c li\u00ean h\u1ec7 t\u1edbi Qu\u00fd Kh\u00e1ch v\u00e0 giao h\u00e0ng \u0111\u00fang \u0111\u1ecba \u0111i\u1ec3m<\/p>\n

\t\u2713Th\u00f4ng b\u00e1o cho Qu\u00fd Kh\u00e1ch v\u1ec1 c\u00e1c c\u01b0\u01a1ng tr\u00ecnh khuy\u1ebfn m\u00e3i h\u00e0ng ng\u00e0y v\u00e0 h\u00e0ng tu\u1ea7n (ch\u1ec9 khi Qu\u00fd Kh\u00e1ch \u0111\u0103ng k\u00ed nh\u1eadn th\u00f4ng tin)<\/p>\n

\tCam k\u1ebft b\u1ea3o m\u1eadt th\u00f4ng tin<\/h3>\n

\t\u2713Th\u00f4ng tin c\u1ee7a Qu\u00fd Kh\u00e1ch s\u1ebd \u0111\u01b0\u1ee3c l\u01b0u gi\u1eef tr\u00ean Server c\u1ee7a ch\u00fang t\u00f4i, tr\u1eeb khi c\u00f3 y\u00eau c\u1ea7u h\u1ee7y ch\u00fang t\u00f4i s\u1ebd ti\u1ebfn h\u00e0nh x\u00f3a t\u1ea5t c\u1ea3 th\u00f4ng tin.<\/p>\n

\t\u2713Th\u00f4ng tin c\u1ee7a Qu\u00fd Kh\u00e1ch s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1ea3m b\u1ea3o an to\u00e0n, kh\u00f4ng ti\u1ebft l\u1ed9 cho b\u00ean th\u1ee9 3 \u0111\u1ec3 nh\u1eb1m ph\u1ee5c v\u1ee5 l\u1ee3i \u00edch chung c\u1ee7a Qu\u00fd Kh\u00e1ch v\u00e0 c\u1ee7a c\u1ea3 ch\u00fang t\u00f4i.<\/p>\n

\t <\/p>\n

\t* M\u1ecdi th\u1eafc m\u1eafc Qu\u00fd Kh\u00e1ch vui l\u00f2ng li\u00ean h\u1ec7 tr\u1ef1c ti\u1ebfp t\u1edbi s\u1ed1 08 6267 5909 ho\u1eb7c hotline : 0914158339<\/strong><\/p>\n

\tTr\u00e2n tr\u1ecdng,<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

Ch\u00fang t\u00f4i lu\u00f4n tu\u00e2n th\u1ee7 ch\u00ednh s\u00e1ch b\u1ea3o m\u1eadt th\u00f4ng tin kh\u00e1ch h\u00e0ng nh\u1eb1m b\u1ea3o v\u1ec7 quy\u1ec1n l\u1ee3i c\u1ee7a kh\u00e1ch h\u00e0ng c\u0169ng nh\u01b0 uy t\u00edn c\u1ee7a ch\u00fang t\u00f4i.<\/p>\n","protected":false},"author":1,"featured_media":8138,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[114],"tags":[],"class_list":["post-8590","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thong-tin-chinh-sach"],"_links":{"self":[{"href":"https:\/\/phukiencamera.top\/wp-json\/wp\/v2\/posts\/8590"}],"collection":[{"href":"https:\/\/phukiencamera.top\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phukiencamera.top\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phukiencamera.top\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phukiencamera.top\/wp-json\/wp\/v2\/comments?post=8590"}],"version-history":[{"count":0,"href":"https:\/\/phukiencamera.top\/wp-json\/wp\/v2\/posts\/8590\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/phukiencamera.top\/wp-json\/wp\/v2\/media\/8138"}],"wp:attachment":[{"href":"https:\/\/phukiencamera.top\/wp-json\/wp\/v2\/media?parent=8590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phukiencamera.top\/wp-json\/wp\/v2\/categories?post=8590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phukiencamera.top\/wp-json\/wp\/v2\/tags?post=8590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}