@dropins/storefront-order 1.4.0-alpha1 → 1.4.0-alpha2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.js CHANGED
@@ -1,20 +1,14 @@
1
1
  /*! Copyright 2025 Adobe
2
2
  All Rights Reserved. */
3
- import{c as J,r as K}from"./chunks/requestGuestOrderCancel.js";import{s as _,f as g,h as O}from"./chunks/fetch-graphql.js";import{g as Z,r as ee,a as te,b as re}from"./chunks/fetch-graphql.js";import{g as oe}from"./chunks/getAttributesForm.js";import{g as ce,a as se,r as ue}from"./chunks/requestGuestReturn.js";import{g as le,a as pe}from"./chunks/getGuestOrder.js";import{g as me}from"./chunks/getCustomerOrdersReturn.js";import{a as R}from"./chunks/initialize.js";import{c as ge,g as Oe,d as fe,i as Ee}from"./chunks/initialize.js";import{g as Ce}from"./chunks/getStoreConfig.js";import{h as f}from"./chunks/network-error.js";import{events as l}from"@dropins/tools/event-bus.js";import{PLACE_ORDER_FRAGMENT as E}from"./fragments.js";import{verifyReCaptcha as v}from"@dropins/tools/recaptcha.js";import{c as ye,a as be,r as _e}from"./chunks/confirmCancelOrder.js";import"@dropins/tools/fetch-graphql.js";import"./chunks/transform-attributes-form.js";import"@dropins/tools/lib.js";const T=(t,r)=>t+r.amount.value,A=(t,r)=>({id:t,totalQuantity:r.totalQuantity,possibleOnepageCheckout:!0,items:r.items.map(e=>{var a,o,n,c,s,u,i,m;return{canApplyMsrp:!0,formattedPrice:"",id:e.id,quantity:e.totalQuantity,product:{canonicalUrl:(a=e.product)==null?void 0:a.canonicalUrl,mainImageUrl:((o=e.product)==null?void 0:o.image)??"",name:((n=e.product)==null?void 0:n.name)??"",productId:0,productType:(c=e.product)==null?void 0:c.productType,sku:((s=e.product)==null?void 0:s.sku)??"",topLevelSku:(u=e.product)==null?void 0:u.sku},prices:{price:{value:e.price.value,currency:e.price.currency,regularPrice:((i=e.regularPrice)==null?void 0:i.value)??e.price.value}},configurableOptions:((m=e.selectedOptions)==null?void 0:m.map(h=>({optionLabel:h.label,valueLabel:h.value})))||[]}}),prices:{subtotalExcludingTax:{value:r.subtotalExclTax.value,currency:r.subtotalExclTax.currency},subtotalIncludingTax:{value:r.subtotalInclTax.value,currency:r.subtotalInclTax.currency}},discountAmount:r.discounts.reduce(T,0)}),D=t=>{var a,o,n;const r=t.coupons[0],e=(a=t.payments)==null?void 0:a[0];return{appliedCouponCode:(r==null?void 0:r.code)??"",email:t.email,grandTotal:t.grandTotal.value,orderId:t.number,orderType:"checkout",otherTax:0,salesTax:t.totalTax.value,shipping:{shippingMethod:((o=t.shipping)==null?void 0:o.code)??"",shippingAmount:((n=t.shipping)==null?void 0:n.amount)??0},subtotalExcludingTax:t.subtotalExclTax.value,subtotalIncludingTax:t.subtotalInclTax.value,payments:e?[{paymentMethodCode:(e==null?void 0:e.code)||"",paymentMethodName:(e==null?void 0:e.name)||"",total:t.grandTotal.value,orderId:t.number}]:[],discountAmount:t.discounts.reduce(T,0),taxAmount:t.totalTax.value}},C=t=>{var e,a;const r=(a=(e=t==null?void 0:t.data)==null?void 0:e.placeOrder)==null?void 0:a.orderV2;return r?R(r):null},p={SHOPPING_CART_CONTEXT:"shoppingCartContext",ORDER_CONTEXT:"orderContext",CHANNEL_CONTEXT:"channelContext"},N={PLACE_ORDER:"place-order"};function x(){return window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer}function d(t,r){const e=x();e.push({[t]:null}),e.push({[t]:r})}function P(t){x().push(e=>{const a=e.getState?e.getState():{};e.push({event:t,eventInfo:{...a}})})}function L(){return{_id:"https://ns.adobe.com/xdm/channels/web",_type:"https://ns.adobe.com/xdm/channel-types/web"}}function w(){d(p.CHANNEL_CONTEXT,L())}function y(t,r){const e=D(r),a=A(t,r);d(p.ORDER_CONTEXT,{...e}),d(p.SHOPPING_CART_CONTEXT,{...a}),w(),P(N.PLACE_ORDER)}class M extends Error{constructor(r){super(r),this.name="PlaceOrderError"}}const b=t=>{const r=t.map(e=>e.message).join(" ");throw new M(r)},G=`
3
+ import{c as J,r as K}from"./chunks/requestGuestOrderCancel.js";import{s as _,f as g,h as O}from"./chunks/fetch-graphql.js";import{g as Z,r as tt,a as et,b as rt}from"./chunks/fetch-graphql.js";import{g as ot}from"./chunks/getAttributesForm.js";import{g as ct,a as st,r as ut}from"./chunks/requestGuestReturn.js";import{g as lt,a as pt}from"./chunks/getGuestOrder.js";import{g as mt}from"./chunks/getCustomerOrdersReturn.js";import{a as R}from"./chunks/initialize.js";import{c as gt,g as Ot,d as ft,i as Et}from"./chunks/initialize.js";import{g as Ct}from"./chunks/getStoreConfig.js";import{h as f}from"./chunks/network-error.js";import{events as l}from"@dropins/tools/event-bus.js";import{PLACE_ORDER_FRAGMENT as E}from"./fragments.js";import{verifyReCaptcha as v}from"@dropins/tools/recaptcha.js";import{c as yt,a as bt,r as _t}from"./chunks/confirmCancelOrder.js";import"@dropins/tools/fetch-graphql.js";import"./chunks/transform-attributes-form.js";import"@dropins/tools/lib.js";const T=(e,r)=>e+r.amount.value,A=(e,r)=>({id:e,totalQuantity:r.totalQuantity,possibleOnepageCheckout:!0,items:r.items.map(t=>{var a,o,n,c,s,u,i,m;return{canApplyMsrp:!0,formattedPrice:"",id:t.id,quantity:t.totalQuantity,product:{canonicalUrl:(a=t.product)==null?void 0:a.canonicalUrl,mainImageUrl:((o=t.product)==null?void 0:o.image)??"",name:((n=t.product)==null?void 0:n.name)??"",productId:0,productType:(c=t.product)==null?void 0:c.productType,sku:((s=t.product)==null?void 0:s.sku)??"",topLevelSku:(u=t.product)==null?void 0:u.sku},prices:{price:{value:t.price.value,currency:t.price.currency,regularPrice:((i=t.regularPrice)==null?void 0:i.value)??t.price.value}},configurableOptions:((m=t.selectedOptions)==null?void 0:m.map(h=>({optionLabel:h.label,valueLabel:h.value})))||[]}}),prices:{subtotalExcludingTax:{value:r.subtotalExclTax.value,currency:r.subtotalExclTax.currency},subtotalIncludingTax:{value:r.subtotalInclTax.value,currency:r.subtotalInclTax.currency}},discountAmount:r.discounts.reduce(T,0)}),D=e=>{var a,o,n;const r=e.coupons[0],t=(a=e.payments)==null?void 0:a[0];return{appliedCouponCode:(r==null?void 0:r.code)??"",email:e.email,grandTotal:e.grandTotal.value,orderId:e.number,orderType:"checkout",otherTax:0,salesTax:e.totalTax.value,shipping:{shippingMethod:((o=e.shipping)==null?void 0:o.code)??"",shippingAmount:((n=e.shipping)==null?void 0:n.amount)??0},subtotalExcludingTax:e.subtotalExclTax.value,subtotalIncludingTax:e.subtotalInclTax.value,payments:t?[{paymentMethodCode:(t==null?void 0:t.code)||"",paymentMethodName:(t==null?void 0:t.name)||"",total:e.grandTotal.value,orderId:e.number}]:[],discountAmount:e.discounts.reduce(T,0),taxAmount:e.totalTax.value}},C=e=>{var t,a;const r=(a=(t=e==null?void 0:e.data)==null?void 0:t.placeOrder)==null?void 0:a.orderV2;return r?R(r):null},p={SHOPPING_CART_CONTEXT:"shoppingCartContext",ORDER_CONTEXT:"orderContext",CHANNEL_CONTEXT:"channelContext"},N={PLACE_ORDER:"place-order"};function x(){return window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer}function d(e,r){const t=x();t.push({[e]:null}),t.push({[e]:r})}function P(e){x().push(t=>{const a=t.getState?t.getState():{};t.push({event:e,eventInfo:{...a}})})}function L(){return{_id:"https://ns.adobe.com/xdm/channels/web",_type:"https://ns.adobe.com/xdm/channel-types/web"}}function w(){d(p.CHANNEL_CONTEXT,L())}function y(e,r){const t=D(r),a=A(e,r);d(p.ORDER_CONTEXT,{...t}),d(p.SHOPPING_CART_CONTEXT,{...a}),w(),P(N.PLACE_ORDER)}class M extends Error{constructor(r){super(r),this.name="PlaceOrderError"}}const b=e=>{const r=e.map(t=>t.message).join(" ");throw new M(r)},G=`
4
4
  mutation PLACE_ORDER_MUTATION($cartId: String!) {
5
5
  placeOrder(input: { cart_id: $cartId }) {
6
- errors {
7
- code
8
- message
9
- }
10
- orderV2 {
11
- ...PLACE_ORDER_FRAGMENT
12
- }
6
+ ...PLACE_ORDER_FRAGMENT
13
7
  }
14
8
  }
15
9
 
16
10
  ${E}
17
- `,S=async()=>{const t=await v();t&&_("X-ReCaptcha",t)},B=async t=>{if(!t)throw new Error("No cart ID found");return await S(),g(G,{method:"POST",variables:{cartId:t}}).then(r=>{var a,o,n,c,s;(a=r.errors)!=null&&a.length&&O(r.errors),(c=(n=(o=r.data)==null?void 0:o.placeOrder)==null?void 0:n.errors)!=null&&c.length&&b((s=r.data.placeOrder)==null?void 0:s.errors);const e=C(r);return e&&(l.emit("order/placed",e),l.emit("cart/reset",void 0),y(t,e)),e}).catch(f)},k=`
11
+ `,S=async()=>{const e=await v();e&&_("X-ReCaptcha",e)},V=async e=>{if(!e)throw new Error("No cart ID found");return await S(),g(G,{method:"POST",variables:{cartId:e}}).then(r=>{var a,o,n,c,s;(a=r.errors)!=null&&a.length&&O(r.errors),(c=(n=(o=r.data)==null?void 0:o.placeOrder)==null?void 0:n.errors)!=null&&c.length&&b((s=r.data.placeOrder)==null?void 0:s.errors);const t=C(r);return t&&(l.emit("order/placed",t),l.emit("cart/reset",void 0),y(e,t)),t}).catch(f)},k=`
18
12
  mutation setPaymentMethodAndPlaceOrder($cartId: String!, $paymentMethod: PaymentMethodInput!) {
19
13
  setPaymentMethodOnCart(
20
14
  input: {
@@ -41,5 +35,5 @@ import{c as J,r as K}from"./chunks/requestGuestOrderCancel.js";import{s as _,f a
41
35
  }
42
36
 
43
37
  ${E}
44
- `,j=async(t,r)=>{if(!t)throw new Error("No cart ID found");if(!r)throw new Error("No payment method found");return g(k,{variables:{cartId:t,paymentMethod:r}}).then(e=>{var o,n,c,s,u,i;(o=e.errors)!=null&&o.length&&O(e.errors),(s=(c=(n=e.data)==null?void 0:n.placeOrder)==null?void 0:c.errors)!=null&&s.length&&b((u=e.data.placeOrder)==null?void 0:u.errors);const a=C({data:{placeOrder:(i=e.data)==null?void 0:i.placeOrder}});return a&&(l.emit("order/placed",a),l.emit("cart/reset",void 0),y(t,a)),a}).catch(f)};export{J as cancelOrder,ge as config,ye as confirmCancelOrder,be as confirmGuestReturn,g as fetchGraphQl,oe as getAttributesForm,ce as getAttributesList,Z as getConfig,le as getCustomer,me as getCustomerOrdersReturn,pe as getGuestOrder,Oe as getOrderDetailsById,Ce as getStoreConfig,fe as guestOrderByToken,Ee as initialize,B as placeOrder,ee as removeFetchGraphQlHeader,_e as reorderItems,K as requestGuestOrderCancel,se as requestGuestReturn,ue as requestReturn,te as setEndpoint,_ as setFetchGraphQlHeader,re as setFetchGraphQlHeaders,j as setPaymentMethodAndPlaceOrder};
38
+ `,j=async(e,r)=>{if(!e)throw new Error("No cart ID found");if(!r)throw new Error("No payment method found");return g(k,{variables:{cartId:e,paymentMethod:r}}).then(t=>{var o,n,c,s,u,i;(o=t.errors)!=null&&o.length&&O(t.errors),(s=(c=(n=t.data)==null?void 0:n.placeOrder)==null?void 0:c.errors)!=null&&s.length&&b((u=t.data.placeOrder)==null?void 0:u.errors);const a=C({data:{placeOrder:(i=t.data)==null?void 0:i.placeOrder}});return a&&(l.emit("order/placed",a),l.emit("cart/reset",void 0),y(e,a)),a}).catch(f)};export{J as cancelOrder,gt as config,yt as confirmCancelOrder,bt as confirmGuestReturn,g as fetchGraphQl,ot as getAttributesForm,ct as getAttributesList,Z as getConfig,lt as getCustomer,mt as getCustomerOrdersReturn,pt as getGuestOrder,Ot as getOrderDetailsById,Ct as getStoreConfig,ft as guestOrderByToken,Et as initialize,V as placeOrder,tt as removeFetchGraphQlHeader,_t as reorderItems,K as requestGuestOrderCancel,st as requestGuestReturn,ut as requestReturn,et as setEndpoint,_ as setFetchGraphQlHeader,rt as setFetchGraphQlHeaders,j as setPaymentMethodAndPlaceOrder};
45
39
  //# sourceMappingURL=api.js.map
package/api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sources":["/@dropins/storefront-order/src/data/transforms/transform-acdl.ts","/@dropins/storefront-order/src/data/transforms/transform-place-order.ts","/@dropins/storefront-order/src/lib/acdl.ts","/@dropins/storefront-order/src/lib/place-order-error.ts","/@dropins/storefront-order/src/api/placeOrder/graphql/placeOrderMutation.ts","/@dropins/storefront-order/src/lib/setReCaptchaToken.ts","/@dropins/storefront-order/src/api/placeOrder/placeOrder.ts","/@dropins/storefront-order/src/api/setPaymentMethodAndPlaceOrder/graphql/setPaymentMethodAndPlaceOrderMutation.ts","/@dropins/storefront-order/src/api/setPaymentMethodAndPlaceOrder/setPaymentMethodAndPlaceOrder.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n OrderContext,\n OrderDataModel,\n ShoppingCartContext,\n} from '@/order/data/models';\n\nconst sumDiscounts = (accum: number, discount: any): number => {\n return accum + discount.amount.value;\n};\n\nexport const transformShoppingCartContext = (\n cartId: string,\n data: OrderDataModel\n): ShoppingCartContext => {\n return {\n id: cartId,\n totalQuantity: data.totalQuantity,\n possibleOnepageCheckout: true,\n // @ts-ignore\n items: data.items.map((orderItem) => ({\n // we don't know if the checkout drop-in can apply Manufacturer’s Suggested Retail Price\n canApplyMsrp: true,\n formattedPrice: '',\n id: orderItem.id,\n quantity: orderItem.totalQuantity,\n product: {\n canonicalUrl: orderItem.product?.canonicalUrl,\n mainImageUrl: orderItem.product?.image ?? '',\n name: orderItem.product?.name ?? '',\n productId: 0, // productId not exposed by core GraphQL as number (uid is string)\n productType: orderItem.product?.productType,\n sku: orderItem.product?.sku ?? '',\n topLevelSku: orderItem.product?.sku,\n },\n prices: {\n price: {\n value: orderItem.price.value,\n currency: orderItem.price.currency,\n regularPrice: orderItem.regularPrice?.value ?? orderItem.price.value,\n },\n },\n configurableOptions:\n orderItem.selectedOptions?.map((selectedOption) => ({\n optionLabel: selectedOption.label,\n valueLabel: selectedOption.value,\n })) || [],\n })),\n prices: {\n subtotalExcludingTax: {\n value: data.subtotalExclTax.value,\n currency: data.subtotalExclTax.currency,\n },\n subtotalIncludingTax: {\n value: data.subtotalInclTax.value,\n currency: data.subtotalInclTax.currency,\n },\n },\n discountAmount: data.discounts.reduce(sumDiscounts, 0),\n };\n};\n\nexport const transformOrderContext = (data: OrderDataModel): OrderContext => {\n const firstCoupon = data.coupons[0];\n // for now, we only support one payment per order\n const orderPayment = data.payments?.[0];\n\n return {\n appliedCouponCode: firstCoupon?.code ?? '',\n email: data.email,\n grandTotal: data.grandTotal.value,\n orderId: data.number,\n orderType: 'checkout',\n otherTax: 0,\n salesTax: data.totalTax.value,\n shipping: {\n shippingMethod: data.shipping?.code ?? '',\n shippingAmount: data.shipping?.amount ?? 0,\n },\n subtotalExcludingTax: data.subtotalExclTax.value,\n subtotalIncludingTax: data.subtotalInclTax.value,\n payments: orderPayment\n ? [\n {\n paymentMethodCode: orderPayment?.code || '',\n paymentMethodName: orderPayment?.name || '',\n total: data.grandTotal.value,\n orderId: data.number,\n },\n ]\n : [],\n discountAmount: data.discounts.reduce(sumDiscounts, 0),\n taxAmount: data.totalTax.value,\n };\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { PlaceOrderResponse } from '@/order/types';\nimport { OrderDataModel } from '../models';\nimport { transformOrderData } from './transform-order-details';\n\nexport const transformPlaceOrder = (\n response: PlaceOrderResponse\n): OrderDataModel | null => {\n const orderData = response?.data?.placeOrder?.orderV2;\n if (!orderData) return null;\n return transformOrderData(orderData);\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { OrderDataModel } from '@/order/data/models';\nimport {\n transformOrderContext,\n transformShoppingCartContext,\n} from '@/order/data/transforms';\n\n/**\n * See: https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-sdk/src/contexts.ts\n */\nexport const contexts = {\n SHOPPING_CART_CONTEXT: 'shoppingCartContext',\n ORDER_CONTEXT: 'orderContext',\n CHANNEL_CONTEXT: 'channelContext',\n};\n\n/**\n * See: https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-sdk/src/events.ts\n */\nexport const events = {\n // See: https://github.com/adobe/commerce-events/blob/main/examples/events/place-order.md\n PLACE_ORDER: 'place-order',\n};\n\nexport function getAdobeDataLayer() {\n // @ts-ignore\n window.adobeDataLayer = window.adobeDataLayer || [];\n // @ts-ignore\n return window.adobeDataLayer;\n}\n\n/**\n * Sets a context in the Adobe Client Data Layer (ACDL)\n * Logic based on: https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-sdk/src/Base.ts#L6\n */\nfunction setContext(name: string, data: any) {\n const adobeDataLayer = getAdobeDataLayer();\n\n // Clear existing context\n adobeDataLayer.push({\n [name]: null,\n });\n\n // Set new context\n adobeDataLayer.push({\n [name]: data,\n });\n}\n\n/**\n * Pushes an event to the Adobe Client Data Layer (ACDL)\n * Logic based on: https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-sdk/src/Base.ts#L35\n */\nfunction pushEvent(event: string) {\n const adobeDataLayer = getAdobeDataLayer();\n\n adobeDataLayer.push((acdl: any) => {\n const state = acdl.getState ? acdl.getState() : {};\n\n acdl.push({\n event,\n eventInfo: {\n ...state,\n },\n });\n });\n}\n\nfunction getChannelContext() {\n return {\n _id: \"https://ns.adobe.com/xdm/channels/web\",\n _type: \"https://ns.adobe.com/xdm/channel-types/web\",\n };\n}\n\nexport function setChannelContext() {\n setContext(contexts.CHANNEL_CONTEXT, getChannelContext());\n}\n\n// Triggered when an order is placed\nexport function publishPlaceOrderEvent(cartId: string, data: OrderDataModel) {\n const orderContext = transformOrderContext(data);\n const shoppingCartContext = transformShoppingCartContext(cartId, data);\n\n // Set context and push open cart event\n setContext(contexts.ORDER_CONTEXT, {\n ...orderContext,\n });\n\n setContext(contexts.SHOPPING_CART_CONTEXT, {\n ...shoppingCartContext,\n });\n\n setChannelContext();\n\n pushEvent(events.PLACE_ORDER);\n}\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { PlaceOrderResponse } from '@/order/types';\n\nexport class PlaceOrderError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'PlaceOrderError';\n }\n}\n\nexport const handlePlaceOrderError = (\n errors: NonNullable<PlaceOrderResponse['errors']>\n) => {\n const errorMessage = errors.map((e: any) => e.message).join(' ');\n throw new PlaceOrderError(errorMessage);\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { PLACE_ORDER_FRAGMENT } from '@/order/api/graphql/PlaceOrderFragment.graphql';\n\nexport const PLACE_ORDER_MUTATION = /* GraphQL */ `\n mutation PLACE_ORDER_MUTATION($cartId: String!) {\n placeOrder(input: { cart_id: $cartId }) {\n errors {\n code\n message\n }\n orderV2 {\n ...PLACE_ORDER_FRAGMENT\n }\n }\n }\n\n ${PLACE_ORDER_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { verifyReCaptcha } from '@adobe-commerce/recaptcha';\nimport { setFetchGraphQlHeader } from '../api';\n\nexport const setReCaptchaToken = async () => {\n const token = await verifyReCaptcha();\n\n if (token) {\n setFetchGraphQlHeader('X-ReCaptcha', token);\n }\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { fetchGraphQl } from '@/order/api';\nimport { OrderDataModel } from '@/order/data/models';\nimport { transformPlaceOrder } from '@/order/data/transforms';\nimport { publishPlaceOrderEvent } from '@/order/lib/acdl';\nimport { handleFetchError } from '@/order/lib/fetch-error';\nimport { handleNetworkError } from '@/order/lib/network-error';\nimport { handlePlaceOrderError } from '@/order/lib/place-order-error';\nimport { PlaceOrderResponse } from '@/order/types/index';\nimport { events } from '@adobe-commerce/event-bus';\nimport { PLACE_ORDER_MUTATION } from './graphql/placeOrderMutation';\nimport { setReCaptchaToken } from '@/order/lib/setReCaptchaToken';\n\nexport const placeOrder = async (\n cartId: string\n): Promise<OrderDataModel | null | undefined> => {\n if (!cartId) throw new Error('No cart ID found');\n await setReCaptchaToken();\n\n return fetchGraphQl(PLACE_ORDER_MUTATION, {\n method: 'POST',\n variables: { cartId },\n })\n .then((response: PlaceOrderResponse) => {\n if (response.errors?.length) {\n handleFetchError(response.errors);\n }\n\n if (response.data?.placeOrder?.errors?.length) {\n handlePlaceOrderError(response.data.placeOrder?.errors);\n }\n\n const payload = transformPlaceOrder(response);\n\n if (payload) {\n events.emit('order/placed', payload);\n events.emit('cart/reset', undefined);\n publishPlaceOrderEvent(cartId, payload);\n }\n\n return payload;\n })\n .catch(handleNetworkError);\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { PLACE_ORDER_FRAGMENT } from '@/order/api/graphql/PlaceOrderFragment.graphql';\n\nexport const SET_PAYMENT_METHOD_AND_PLACE_ORDER_MUTATION = /* GraphQL */ `\n mutation setPaymentMethodAndPlaceOrder($cartId: String!, $paymentMethod: PaymentMethodInput!) {\n setPaymentMethodOnCart(\n input: {\n cart_id: $cartId\n payment_method: $paymentMethod\n }\n ) {\n cart {\n selected_payment_method {\n code\n title\n }\n }\n }\n placeOrder(input: { cart_id: $cartId }) {\n errors {\n code\n message\n }\n orderV2 {\n ...PLACE_ORDER_FRAGMENT\n }\n }\n }\n\n ${PLACE_ORDER_FRAGMENT}\n`;","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { fetchGraphQl } from '@/order/api';\nimport { OrderDataModel } from '@/order/data/models';\nimport { transformPlaceOrder } from '@/order/data/transforms';\nimport { publishPlaceOrderEvent } from '@/order/lib/acdl';\nimport { handleFetchError } from '@/order/lib/fetch-error';\nimport { handleNetworkError } from '@/order/lib/network-error';\nimport { handlePlaceOrderError } from '@/order/lib/place-order-error';\nimport { events } from '@adobe-commerce/event-bus';\nimport { SET_PAYMENT_METHOD_AND_PLACE_ORDER_MUTATION } from './graphql/setPaymentMethodAndPlaceOrderMutation';\n\nexport const setPaymentMethodAndPlaceOrder = async (\n cartId: string,\n paymentMethod: any\n): Promise<OrderDataModel | null | undefined> => {\n if (!cartId) throw new Error('No cart ID found');\n if (!paymentMethod) throw new Error('No payment method found');\n\n return fetchGraphQl(SET_PAYMENT_METHOD_AND_PLACE_ORDER_MUTATION, {\n variables: { cartId, paymentMethod },\n })\n .then((response: any) => {\n if (response.errors?.length) {\n handleFetchError(response.errors);\n }\n\n // Check for errors in placeOrder part of the response\n if (response.data?.placeOrder?.errors?.length) {\n handlePlaceOrderError(response.data.placeOrder?.errors);\n }\n\n // Use the same transformation as placeOrder\n const payload = transformPlaceOrder({ data: { placeOrder: response.data?.placeOrder } });\n\n if (payload) {\n events.emit('order/placed', payload);\n events.emit('cart/reset', undefined);\n publishPlaceOrderEvent(cartId, payload);\n }\n\n return payload;\n })\n .catch(handleNetworkError);\n};\n"],"names":["sumDiscounts","accum","discount","transformShoppingCartContext","cartId","data","orderItem","_a","_b","_c","_d","_e","_f","_g","_h","selectedOption","transformOrderContext","firstCoupon","orderPayment","transformPlaceOrder","response","orderData","transformOrderData","contexts","events","getAdobeDataLayer","setContext","name","adobeDataLayer","pushEvent","event","acdl","state","getChannelContext","setChannelContext","publishPlaceOrderEvent","orderContext","shoppingCartContext","PlaceOrderError","message","handlePlaceOrderError","errors","errorMessage","PLACE_ORDER_MUTATION","PLACE_ORDER_FRAGMENT","setReCaptchaToken","token","verifyReCaptcha","setFetchGraphQlHeader","placeOrder","fetchGraphQl","handleFetchError","payload","handleNetworkError","SET_PAYMENT_METHOD_AND_PLACE_ORDER_MUTATION","setPaymentMethodAndPlaceOrder","paymentMethod"],"mappings":"s9BAsBA,MAAMA,EAAe,CAACC,EAAeC,IAC5BD,EAAQC,EAAS,OAAO,MAGpBC,EAA+B,CAC1CC,EACAC,KAEO,CACL,GAAID,EACJ,cAAeC,EAAK,cACpB,wBAAyB,GAEzB,MAAOA,EAAK,MAAM,IAAKC,GAAe,qBAAA,OAEpC,aAAc,GACd,eAAgB,GAChB,GAAIA,EAAU,GACd,SAAUA,EAAU,cACpB,QAAS,CACP,cAAcC,EAAAD,EAAU,UAAV,YAAAC,EAAmB,aACjC,eAAcC,EAAAF,EAAU,UAAV,YAAAE,EAAmB,QAAS,GAC1C,OAAMC,EAAAH,EAAU,UAAV,YAAAG,EAAmB,OAAQ,GACjC,UAAW,EACX,aAAaC,EAAAJ,EAAU,UAAV,YAAAI,EAAmB,YAChC,MAAKC,EAAAL,EAAU,UAAV,YAAAK,EAAmB,MAAO,GAC/B,aAAaC,EAAAN,EAAU,UAAV,YAAAM,EAAmB,GAClC,EACA,OAAQ,CACN,MAAO,CACL,MAAON,EAAU,MAAM,MACvB,SAAUA,EAAU,MAAM,SAC1B,eAAcO,EAAAP,EAAU,eAAV,YAAAO,EAAwB,QAASP,EAA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Q,cAAAoD,CAAc,CAAA,CACpC,EACE,KAAMpC,GAAkB,kBACnBb,EAAAa,EAAS,SAAT,MAAAb,EAAiB,QACnB4C,EAAiB/B,EAAS,MAAM,GAI9BV,GAAAD,GAAAD,EAAAY,EAAS,OAAT,YAAAZ,EAAe,aAAf,YAAAC,EAA2B,SAA3B,MAAAC,EAAmC,QACf8B,GAAA7B,EAAAS,EAAS,KAAK,aAAd,YAAAT,EAA0B,MAAM,EAIlD,MAAAyC,EAAUjC,EAAoB,CAAE,KAAM,CAAE,YAAYP,EAAAQ,EAAS,OAAT,YAAAR,EAAe,UAAW,EAAG,EAEvF,OAAIwC,IACK5B,EAAA,KAAK,eAAgB4B,CAAO,EAC5B5B,EAAA,KAAK,aAAc,MAAS,EACnCW,EAAuB/B,EAAQgD,CAAO,GAGjCA,CAAA,CACR,EACA,MAAMC,CAAkB,CAC7B"}
1
+ {"version":3,"file":"api.js","sources":["/@dropins/storefront-order/src/data/transforms/transform-acdl.ts","/@dropins/storefront-order/src/data/transforms/transform-place-order.ts","/@dropins/storefront-order/src/lib/acdl.ts","/@dropins/storefront-order/src/lib/place-order-error.ts","/@dropins/storefront-order/src/api/placeOrder/graphql/placeOrderMutation.ts","/@dropins/storefront-order/src/lib/setReCaptchaToken.ts","/@dropins/storefront-order/src/api/placeOrder/placeOrder.ts","/@dropins/storefront-order/src/api/setPaymentMethodAndPlaceOrder/graphql/setPaymentMethodAndPlaceOrderMutation.ts","/@dropins/storefront-order/src/api/setPaymentMethodAndPlaceOrder/setPaymentMethodAndPlaceOrder.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n OrderContext,\n OrderDataModel,\n ShoppingCartContext,\n} from '@/order/data/models';\n\nconst sumDiscounts = (accum: number, discount: any): number => {\n return accum + discount.amount.value;\n};\n\nexport const transformShoppingCartContext = (\n cartId: string,\n data: OrderDataModel\n): ShoppingCartContext => {\n return {\n id: cartId,\n totalQuantity: data.totalQuantity,\n possibleOnepageCheckout: true,\n // @ts-ignore\n items: data.items.map((orderItem) => ({\n // we don't know if the checkout drop-in can apply Manufacturer’s Suggested Retail Price\n canApplyMsrp: true,\n formattedPrice: '',\n id: orderItem.id,\n quantity: orderItem.totalQuantity,\n product: {\n canonicalUrl: orderItem.product?.canonicalUrl,\n mainImageUrl: orderItem.product?.image ?? '',\n name: orderItem.product?.name ?? '',\n productId: 0, // productId not exposed by core GraphQL as number (uid is string)\n productType: orderItem.product?.productType,\n sku: orderItem.product?.sku ?? '',\n topLevelSku: orderItem.product?.sku,\n },\n prices: {\n price: {\n value: orderItem.price.value,\n currency: orderItem.price.currency,\n regularPrice: orderItem.regularPrice?.value ?? orderItem.price.value,\n },\n },\n configurableOptions:\n orderItem.selectedOptions?.map((selectedOption) => ({\n optionLabel: selectedOption.label,\n valueLabel: selectedOption.value,\n })) || [],\n })),\n prices: {\n subtotalExcludingTax: {\n value: data.subtotalExclTax.value,\n currency: data.subtotalExclTax.currency,\n },\n subtotalIncludingTax: {\n value: data.subtotalInclTax.value,\n currency: data.subtotalInclTax.currency,\n },\n },\n discountAmount: data.discounts.reduce(sumDiscounts, 0),\n };\n};\n\nexport const transformOrderContext = (data: OrderDataModel): OrderContext => {\n const firstCoupon = data.coupons[0];\n // for now, we only support one payment per order\n const orderPayment = data.payments?.[0];\n\n return {\n appliedCouponCode: firstCoupon?.code ?? '',\n email: data.email,\n grandTotal: data.grandTotal.value,\n orderId: data.number,\n orderType: 'checkout',\n otherTax: 0,\n salesTax: data.totalTax.value,\n shipping: {\n shippingMethod: data.shipping?.code ?? '',\n shippingAmount: data.shipping?.amount ?? 0,\n },\n subtotalExcludingTax: data.subtotalExclTax.value,\n subtotalIncludingTax: data.subtotalInclTax.value,\n payments: orderPayment\n ? [\n {\n paymentMethodCode: orderPayment?.code || '',\n paymentMethodName: orderPayment?.name || '',\n total: data.grandTotal.value,\n orderId: data.number,\n },\n ]\n : [],\n discountAmount: data.discounts.reduce(sumDiscounts, 0),\n taxAmount: data.totalTax.value,\n };\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { PlaceOrderResponse } from '@/order/types';\nimport { OrderDataModel } from '../models';\nimport { transformOrderData } from './transform-order-details';\n\nexport const transformPlaceOrder = (\n response: PlaceOrderResponse\n): OrderDataModel | null => {\n const orderData = response?.data?.placeOrder?.orderV2;\n if (!orderData) return null;\n return transformOrderData(orderData);\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { OrderDataModel } from '@/order/data/models';\nimport {\n transformOrderContext,\n transformShoppingCartContext,\n} from '@/order/data/transforms';\n\n/**\n * See: https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-sdk/src/contexts.ts\n */\nexport const contexts = {\n SHOPPING_CART_CONTEXT: 'shoppingCartContext',\n ORDER_CONTEXT: 'orderContext',\n CHANNEL_CONTEXT: 'channelContext',\n};\n\n/**\n * See: https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-sdk/src/events.ts\n */\nexport const events = {\n // See: https://github.com/adobe/commerce-events/blob/main/examples/events/place-order.md\n PLACE_ORDER: 'place-order',\n};\n\nexport function getAdobeDataLayer() {\n // @ts-ignore\n window.adobeDataLayer = window.adobeDataLayer || [];\n // @ts-ignore\n return window.adobeDataLayer;\n}\n\n/**\n * Sets a context in the Adobe Client Data Layer (ACDL)\n * Logic based on: https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-sdk/src/Base.ts#L6\n */\nfunction setContext(name: string, data: any) {\n const adobeDataLayer = getAdobeDataLayer();\n\n // Clear existing context\n adobeDataLayer.push({\n [name]: null,\n });\n\n // Set new context\n adobeDataLayer.push({\n [name]: data,\n });\n}\n\n/**\n * Pushes an event to the Adobe Client Data Layer (ACDL)\n * Logic based on: https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-sdk/src/Base.ts#L35\n */\nfunction pushEvent(event: string) {\n const adobeDataLayer = getAdobeDataLayer();\n\n adobeDataLayer.push((acdl: any) => {\n const state = acdl.getState ? acdl.getState() : {};\n\n acdl.push({\n event,\n eventInfo: {\n ...state,\n },\n });\n });\n}\n\nfunction getChannelContext() {\n return {\n _id: \"https://ns.adobe.com/xdm/channels/web\",\n _type: \"https://ns.adobe.com/xdm/channel-types/web\",\n };\n}\n\nexport function setChannelContext() {\n setContext(contexts.CHANNEL_CONTEXT, getChannelContext());\n}\n\n// Triggered when an order is placed\nexport function publishPlaceOrderEvent(cartId: string, data: OrderDataModel) {\n const orderContext = transformOrderContext(data);\n const shoppingCartContext = transformShoppingCartContext(cartId, data);\n\n // Set context and push open cart event\n setContext(contexts.ORDER_CONTEXT, {\n ...orderContext,\n });\n\n setContext(contexts.SHOPPING_CART_CONTEXT, {\n ...shoppingCartContext,\n });\n\n setChannelContext();\n\n pushEvent(events.PLACE_ORDER);\n}\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { PlaceOrderResponse } from '@/order/types';\n\nexport class PlaceOrderError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'PlaceOrderError';\n }\n}\n\nexport const handlePlaceOrderError = (\n errors: NonNullable<PlaceOrderResponse['errors']>\n) => {\n const errorMessage = errors.map((e: any) => e.message).join(' ');\n throw new PlaceOrderError(errorMessage);\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { PLACE_ORDER_FRAGMENT } from \"@/order/api/graphql/PlaceOrderFragment.graphql\";\n\nexport const PLACE_ORDER_MUTATION = /* GraphQL */ `\n mutation PLACE_ORDER_MUTATION($cartId: String!) {\n placeOrder(input: { cart_id: $cartId }) {\n ...PLACE_ORDER_FRAGMENT\n }\n }\n\n ${PLACE_ORDER_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { verifyReCaptcha } from '@adobe-commerce/recaptcha';\nimport { setFetchGraphQlHeader } from '../api';\n\nexport const setReCaptchaToken = async () => {\n const token = await verifyReCaptcha();\n\n if (token) {\n setFetchGraphQlHeader('X-ReCaptcha', token);\n }\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { fetchGraphQl } from '@/order/api';\nimport { OrderDataModel } from '@/order/data/models';\nimport { transformPlaceOrder } from '@/order/data/transforms';\nimport { publishPlaceOrderEvent } from '@/order/lib/acdl';\nimport { handleFetchError } from '@/order/lib/fetch-error';\nimport { handleNetworkError } from '@/order/lib/network-error';\nimport { handlePlaceOrderError } from '@/order/lib/place-order-error';\nimport { PlaceOrderResponse } from '@/order/types/index';\nimport { events } from '@adobe-commerce/event-bus';\nimport { PLACE_ORDER_MUTATION } from './graphql/placeOrderMutation';\nimport { setReCaptchaToken } from '@/order/lib/setReCaptchaToken';\n\nexport const placeOrder = async (\n cartId: string\n): Promise<OrderDataModel | null | undefined> => {\n if (!cartId) throw new Error('No cart ID found');\n await setReCaptchaToken();\n\n return fetchGraphQl(PLACE_ORDER_MUTATION, {\n method: 'POST',\n variables: { cartId },\n })\n .then((response: PlaceOrderResponse) => {\n if (response.errors?.length) {\n handleFetchError(response.errors);\n }\n\n if (response.data?.placeOrder?.errors?.length) {\n handlePlaceOrderError(response.data.placeOrder?.errors);\n }\n\n const payload = transformPlaceOrder(response);\n\n if (payload) {\n events.emit('order/placed', payload);\n events.emit('cart/reset', undefined);\n publishPlaceOrderEvent(cartId, payload);\n }\n\n return payload;\n })\n .catch(handleNetworkError);\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { PLACE_ORDER_FRAGMENT } from '@/order/api/graphql/PlaceOrderFragment.graphql';\n\nexport const SET_PAYMENT_METHOD_AND_PLACE_ORDER_MUTATION = /* GraphQL */ `\n mutation setPaymentMethodAndPlaceOrder($cartId: String!, $paymentMethod: PaymentMethodInput!) {\n setPaymentMethodOnCart(\n input: {\n cart_id: $cartId\n payment_method: $paymentMethod\n }\n ) {\n cart {\n selected_payment_method {\n code\n title\n }\n }\n }\n placeOrder(input: { cart_id: $cartId }) {\n errors {\n code\n message\n }\n orderV2 {\n ...PLACE_ORDER_FRAGMENT\n }\n }\n }\n\n ${PLACE_ORDER_FRAGMENT}\n`;","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { fetchGraphQl } from '@/order/api';\nimport { OrderDataModel } from '@/order/data/models';\nimport { transformPlaceOrder } from '@/order/data/transforms';\nimport { publishPlaceOrderEvent } from '@/order/lib/acdl';\nimport { handleFetchError } from '@/order/lib/fetch-error';\nimport { handleNetworkError } from '@/order/lib/network-error';\nimport { handlePlaceOrderError } from '@/order/lib/place-order-error';\nimport { events } from '@adobe-commerce/event-bus';\nimport { SET_PAYMENT_METHOD_AND_PLACE_ORDER_MUTATION } from './graphql/setPaymentMethodAndPlaceOrderMutation';\n\nexport const setPaymentMethodAndPlaceOrder = async (\n cartId: string,\n paymentMethod: any\n): Promise<OrderDataModel | null | undefined> => {\n if (!cartId) throw new Error('No cart ID found');\n if (!paymentMethod) throw new Error('No payment method found');\n\n return fetchGraphQl(SET_PAYMENT_METHOD_AND_PLACE_ORDER_MUTATION, {\n variables: { cartId, paymentMethod },\n })\n .then((response: any) => {\n if (response.errors?.length) {\n handleFetchError(response.errors);\n }\n\n // Check for errors in placeOrder part of the response\n if (response.data?.placeOrder?.errors?.length) {\n handlePlaceOrderError(response.data.placeOrder?.errors);\n }\n\n // Use the same transformation as placeOrder\n const payload = transformPlaceOrder({ data: { placeOrder: response.data?.placeOrder } });\n\n if (payload) {\n events.emit('order/placed', payload);\n events.emit('cart/reset', undefined);\n publishPlaceOrderEvent(cartId, payload);\n }\n\n return payload;\n })\n .catch(handleNetworkError);\n};\n"],"names":["sumDiscounts","accum","discount","transformShoppingCartContext","cartId","data","orderItem","_a","_b","_c","_d","_e","_f","_g","_h","selectedOption","transformOrderContext","firstCoupon","orderPayment","transformPlaceOrder","response","orderData","transformOrderData","contexts","events","getAdobeDataLayer","setContext","name","adobeDataLayer","pushEvent","event","acdl","state","getChannelContext","setChannelContext","publishPlaceOrderEvent","orderContext","shoppingCartContext","PlaceOrderError","message","handlePlaceOrderError","errors","errorMessage","e","PLACE_ORDER_MUTATION","PLACE_ORDER_FRAGMENT","setReCaptchaToken","token","verifyReCaptcha","setFetchGraphQlHeader","placeOrder","fetchGraphQl","handleFetchError","payload","handleNetworkError","SET_PAYMENT_METHOD_AND_PLACE_ORDER_MUTATION","setPaymentMethodAndPlaceOrder","paymentMethod"],"mappings":"s9BAsBA,MAAMA,EAAe,CAACC,EAAeC,IAC5BD,EAAQC,EAAS,OAAO,MAGpBC,EAA+B,CAC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=`
57
57
  fragment PRICE_DETAILS_FRAGMENT on OrderItemInterface {
58
58
  prices {
59
59
  price_including_tax {
@@ -74,7 +74,7 @@ const d=`
74
74
  }
75
75
  }
76
76
  }
77
- `,r=`
77
+ `,t=`
78
78
  fragment GIFT_CARD_DETAILS_FRAGMENT on GiftCardOrderItem {
79
79
  ...PRICE_DETAILS_FRAGMENT
80
80
  gift_message {
@@ -88,7 +88,7 @@ const d=`
88
88
  message
89
89
  }
90
90
  }
91
- `,n=`
91
+ `,a=`
92
92
  fragment ORDER_ITEM_DETAILS_FRAGMENT on OrderItemInterface {
93
93
  gift_wrapping {
94
94
  ...GIFT_WRAPPING_FRAGMENT
@@ -122,7 +122,7 @@ const d=`
122
122
  }
123
123
  ...PRICE_DETAILS_FRAGMENT
124
124
  }
125
- `,a=`
125
+ `,n=`
126
126
  fragment BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT on BundleOrderItem {
127
127
  ...PRICE_DETAILS_FRAGMENT
128
128
  bundle_options {
@@ -382,10 +382,10 @@ const d=`
382
382
  }
383
383
  }
384
384
  ${_}
385
- ${t}
386
385
  ${r}
387
- ${n}
386
+ ${t}
388
387
  ${a}
388
+ ${n}
389
389
  ${i}
390
390
  ${e}
391
391
  ${A}
@@ -394,86 +394,92 @@ const d=`
394
394
  ${c}
395
395
  ${R}
396
396
  `,s=`
397
- fragment PLACE_ORDER_FRAGMENT on CustomerOrder {
398
- printed_card_included
399
- gift_receipt_included
400
- gift_wrapping {
401
- ...GIFT_WRAPPING_FRAGMENT
402
- }
403
- gift_message {
404
- ...GIFT_MESSAGE_FRAGMENT
405
- }
406
- applied_gift_cards {
407
- ...APPLIED_GIFT_CARDS_FRAGMENT
408
- }
409
- email
410
- available_actions
411
- status
412
- number
413
- token
414
- id
415
- order_date
416
- carrier
417
- shipping_method
418
- is_virtual
419
- applied_coupons {
397
+ fragment PLACE_ORDER_FRAGMENT on PlaceOrderOutput {
398
+ errors {
420
399
  code
400
+ message
421
401
  }
422
- shipments {
423
- id
424
- number
425
- tracking {
426
- title
427
- number
428
- carrier
402
+ orderV2 {
403
+ printed_card_included
404
+ gift_receipt_included
405
+ gift_wrapping {
406
+ ...GIFT_WRAPPING_FRAGMENT
429
407
  }
430
- comments {
431
- message
432
- timestamp
408
+ gift_message {
409
+ ...GIFT_MESSAGE_FRAGMENT
433
410
  }
434
- items {
411
+ applied_gift_cards {
412
+ ...APPLIED_GIFT_CARDS_FRAGMENT
413
+ }
414
+ email
415
+ available_actions
416
+ status
417
+ number
418
+ token
419
+ id
420
+ order_date
421
+ carrier
422
+ shipping_method
423
+ is_virtual
424
+ applied_coupons {
425
+ code
426
+ }
427
+ shipments {
435
428
  id
436
- product_sku
437
- product_name
438
- order_item {
439
- ...ORDER_ITEM_DETAILS_FRAGMENT
440
- ... on GiftCardOrderItem {
441
- ...GIFT_CARD_DETAILS_FRAGMENT
442
- product {
443
- ...PRODUCT_DETAILS_FRAGMENT
429
+ number
430
+ tracking {
431
+ title
432
+ number
433
+ carrier
434
+ }
435
+ comments {
436
+ message
437
+ timestamp
438
+ }
439
+ items {
440
+ id
441
+ product_sku
442
+ product_name
443
+ order_item {
444
+ ...ORDER_ITEM_DETAILS_FRAGMENT
445
+ ... on GiftCardOrderItem {
446
+ ...GIFT_CARD_DETAILS_FRAGMENT
447
+ product {
448
+ ...PRODUCT_DETAILS_FRAGMENT
449
+ }
444
450
  }
445
451
  }
446
452
  }
447
453
  }
448
- }
449
- payment_methods {
450
- name
451
- type
452
- }
453
- shipping_address {
454
- ...ADDRESS_FRAGMENT
455
- }
456
- billing_address {
457
- ...ADDRESS_FRAGMENT
458
- }
459
- items {
460
- ...ORDER_ITEM_FRAGMENT
461
- }
462
- total {
463
- ...ORDER_SUMMARY_FRAGMENT
454
+ payment_methods {
455
+ name
456
+ type
457
+ }
458
+ shipping_address {
459
+ ...ADDRESS_FRAGMENT
460
+ }
461
+ billing_address {
462
+ ...ADDRESS_FRAGMENT
463
+ }
464
+ items {
465
+ ...ORDER_ITEM_FRAGMENT
466
+ }
467
+ total {
468
+ ...ORDER_SUMMARY_FRAGMENT
469
+ }
464
470
  }
465
471
  }
466
472
 
467
473
  ${e}
468
- ${a}
469
- ${r}
470
474
  ${n}
471
- ${i}
472
475
  ${t}
476
+ ${a}
477
+ ${i}
478
+ ${r}
473
479
  ${_}
474
480
  ${E}
475
481
  ${T}
476
482
  ${c}
477
483
  ${R}
478
- `;export{e as ADDRESS_FRAGMENT,R as APPLIED_GIFT_CARDS_FRAGMENT,a as BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT,u as DOWNLOADABLE_ORDER_ITEMS_FRAGMENT,r as GIFT_CARD_DETAILS_FRAGMENT,c as GIFT_MESSAGE_FRAGMENT,T as GIFT_WRAPPING_FRAGMENT,o as GUEST_ORDER_FRAGMENT,n as ORDER_ITEM_DETAILS_FRAGMENT,E as ORDER_ITEM_FRAGMENT,i as ORDER_SUMMARY_FRAGMENT,s as PLACE_ORDER_FRAGMENT,t as PRICE_DETAILS_FRAGMENT,_ as PRODUCT_DETAILS_FRAGMENT,d as REQUEST_RETURN_ORDER_FRAGMENT,A as RETURNS_FRAGMENT};
484
+ `;export{e as ADDRESS_FRAGMENT,R as APPLIED_GIFT_CARDS_FRAGMENT,n as BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT,u as DOWNLOADABLE_ORDER_ITEMS_FRAGMENT,t as GIFT_CARD_DETAILS_FRAGMENT,c as GIFT_MESSAGE_FRAGMENT,T as GIFT_WRAPPING_FRAGMENT,o as GUEST_ORDER_FRAGMENT,a as ORDER_ITEM_DETAILS_FRAGMENT,E as ORDER_ITEM_FRAGMENT,i as ORDER_SUMMARY_FRAGMENT,s as PLACE_ORDER_FRAGMENT,r as PRICE_DETAILS_FRAGMENT,_ as PRODUCT_DETAILS_FRAGMENT,d as REQUEST_RETURN_ORDER_FRAGMENT,A as RETURNS_FRAGMENT};
479
485
  //# sourceMappingURL=fragments.js.map
package/fragments.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"fragments.js","sources":["/@dropins/storefront-order/src/api/graphql/RequestReturnOrderFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/CustomerAddressFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/OrderItemsFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/OrderSummaryFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/ReturnsFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/GiftFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/GuestOrderFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/PlaceOrderFragment.graphql.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const REQUEST_RETURN_ORDER_FRAGMENT = /* GraphQL */ `\n fragment REQUEST_RETURN_ORDER_FRAGMENT on Return {\n __typename\n uid\n status\n number\n created_at\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment ADDRESS_FRAGMENT on OrderAddress {\n city\n company\n country_code\n fax\n firstname\n lastname\n middlename\n postcode\n prefix\n region\n region_id\n street\n suffix\n telephone\n vat_id\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const PRODUCT_DETAILS_FRAGMENT = /* GraphQL */ `\n fragment PRODUCT_DETAILS_FRAGMENT on ProductInterface {\n __typename\n canonical_url\n url_key\n uid\n name\n sku\n only_x_left_in_stock\n gift_wrapping_price {\n currency\n value\n }\n stock_status\n thumbnail {\n label\n url\n }\n price_range {\n maximum_price {\n regular_price {\n currency\n value\n }\n }\n }\n }\n`;\n\nexport const PRICE_DETAILS_FRAGMENT = /* GraphQL */ `\n fragment PRICE_DETAILS_FRAGMENT on OrderItemInterface {\n prices {\n price_including_tax {\n value\n currency\n }\n original_price {\n value\n currency\n }\n original_price_including_tax {\n value\n currency\n }\n price {\n value\n currency\n }\n }\n }\n`;\n\nexport const GIFT_CARD_DETAILS_FRAGMENT = /* GraphQL */ `\n fragment GIFT_CARD_DETAILS_FRAGMENT on GiftCardOrderItem {\n ...PRICE_DETAILS_FRAGMENT\n gift_message {\n ...GIFT_MESSAGE_FRAGMENT\n }\n gift_card {\n recipient_name\n recipient_email\n sender_name\n sender_email\n message\n }\n }\n`;\n\nexport const ORDER_ITEM_DETAILS_FRAGMENT = /* GraphQL */ `\n fragment ORDER_ITEM_DETAILS_FRAGMENT on OrderItemInterface {\n gift_wrapping {\n ...GIFT_WRAPPING_FRAGMENT\n }\n __typename\n status\n product_sku\n eligible_for_return\n product_name\n product_url_key\n id\n quantity_ordered\n quantity_shipped\n quantity_canceled\n quantity_invoiced\n quantity_refunded\n quantity_return_requested\n gift_message {\n ...GIFT_MESSAGE_FRAGMENT\n }\n product_sale_price {\n value\n currency\n }\n selected_options {\n label\n value\n }\n product {\n ...PRODUCT_DETAILS_FRAGMENT\n }\n ...PRICE_DETAILS_FRAGMENT\n }\n`;\n\nexport const BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT = /* GraphQL */ `\n fragment BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT on BundleOrderItem {\n ...PRICE_DETAILS_FRAGMENT\n bundle_options {\n uid\n label\n values {\n uid\n product_name\n }\n }\n }\n`;\n\nexport const DOWNLOADABLE_ORDER_ITEMS_FRAGMENT = /* GraphQL */ `\n fragment DOWNLOADABLE_ORDER_ITEMS_FRAGMENT on DownloadableOrderItem {\n product_name\n downloadable_links {\n sort_order\n title\n }\n }\n`;\n\nexport const ORDER_ITEM_FRAGMENT = /* GraphQL */ `\n fragment ORDER_ITEM_FRAGMENT on OrderItemInterface {\n ...ORDER_ITEM_DETAILS_FRAGMENT\n ... on BundleOrderItem {\n ...BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT\n }\n ... on GiftCardOrderItem {\n ...GIFT_CARD_DETAILS_FRAGMENT\n product {\n ...PRODUCT_DETAILS_FRAGMENT\n }\n }\n ...DOWNLOADABLE_ORDER_ITEMS_FRAGMENT\n }\n\n ${DOWNLOADABLE_ORDER_ITEMS_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const ORDER_SUMMARY_FRAGMENT = /* GraphQL */ `\n fragment ORDER_SUMMARY_FRAGMENT on OrderTotal {\n gift_options {\n gift_wrapping_for_items {\n currency\n value\n }\n gift_wrapping_for_items_incl_tax {\n currency\n value\n }\n gift_wrapping_for_order {\n currency\n value\n }\n gift_wrapping_for_order_incl_tax {\n currency\n value\n }\n printed_card {\n currency\n value\n }\n printed_card_incl_tax {\n currency\n value\n }\n }\n grand_total {\n value\n currency\n }\n grand_total_excl_tax {\n value\n currency\n }\n total_giftcard {\n currency\n value\n }\n subtotal_excl_tax {\n currency\n value\n }\n subtotal_incl_tax {\n currency\n value\n }\n taxes {\n amount {\n currency\n value\n }\n rate\n title\n }\n total_tax {\n currency\n value\n }\n total_shipping {\n currency\n value\n }\n discounts {\n amount {\n currency\n value\n }\n label\n }\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const RETURNS_FRAGMENT = /* GraphQL */ `\n fragment RETURNS_FRAGMENT on Returns {\n __typename\n items {\n number\n status\n created_at\n shipping {\n tracking {\n status {\n text\n type\n }\n carrier {\n uid\n label\n }\n tracking_number\n }\n }\n order {\n number\n token\n }\n items {\n uid\n quantity\n status\n request_quantity\n order_item {\n ...ORDER_ITEM_DETAILS_FRAGMENT\n ... on GiftCardOrderItem {\n ...GIFT_CARD_DETAILS_FRAGMENT\n product {\n ...PRODUCT_DETAILS_FRAGMENT\n }\n }\n }\n }\n }\n }\n`;\n","export const APPLIED_GIFT_CARDS_FRAGMENT = `\n fragment APPLIED_GIFT_CARDS_FRAGMENT on ApplyGiftCardToOrder {\n __typename\n code\n applied_balance {\n value\n currency\n }\n }\n`;\n\nexport const GIFT_MESSAGE_FRAGMENT = `\n fragment GIFT_MESSAGE_FRAGMENT on GiftMessage {\n __typename\n from\n to\n message\n }\n`;\n\nexport const GIFT_WRAPPING_FRAGMENT = `\n fragment GIFT_WRAPPING_FRAGMENT on GiftWrapping {\n __typename\n uid\n design\n image {\n url\n }\n price {\n value\n currency\n }\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n ADDRESS_FRAGMENT,\n BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT,\n GIFT_CARD_DETAILS_FRAGMENT,\n ORDER_ITEM_DETAILS_FRAGMENT,\n PRICE_DETAILS_FRAGMENT,\n PRODUCT_DETAILS_FRAGMENT,\n ORDER_SUMMARY_FRAGMENT,\n RETURNS_FRAGMENT,\n ORDER_ITEM_FRAGMENT,\n GIFT_WRAPPING_FRAGMENT,\n GIFT_MESSAGE_FRAGMENT,\n APPLIED_GIFT_CARDS_FRAGMENT,\n} from '@/order/api/fragments';\n\nexport const GUEST_ORDER_FRAGMENT = /* GraphQL */ `\n fragment GUEST_ORDER_FRAGMENT on CustomerOrder {\n printed_card_included\n gift_receipt_included\n gift_wrapping {\n ...GIFT_WRAPPING_FRAGMENT\n }\n gift_message {\n ...GIFT_MESSAGE_FRAGMENT\n }\n applied_gift_cards {\n ...APPLIED_GIFT_CARDS_FRAGMENT\n }\n items_eligible_for_return {\n ...ORDER_ITEM_DETAILS_FRAGMENT\n }\n email\n id\n number\n order_date\n order_status_change_date\n status\n token\n carrier\n shipping_method\n available_actions\n is_virtual\n returns {\n ...RETURNS_FRAGMENT\n }\n payment_methods {\n name\n type\n }\n applied_coupons {\n code\n }\n shipments {\n id\n tracking {\n title\n number\n carrier\n }\n comments {\n message\n timestamp\n }\n items {\n __typename\n id\n product_sku\n product_name\n order_item {\n ...ORDER_ITEM_DETAILS_FRAGMENT\n ... on GiftCardOrderItem {\n ...GIFT_CARD_DETAILS_FRAGMENT\n product {\n ...PRODUCT_DETAILS_FRAGMENT\n }\n }\n }\n }\n }\n payment_methods {\n name\n type\n }\n shipping_address {\n ...ADDRESS_FRAGMENT\n }\n billing_address {\n ...ADDRESS_FRAGMENT\n }\n items {\n ...ORDER_ITEM_FRAGMENT\n }\n total {\n ...ORDER_SUMMARY_FRAGMENT\n }\n }\n ${PRODUCT_DETAILS_FRAGMENT}\n ${PRICE_DETAILS_FRAGMENT}\n ${GIFT_CARD_DETAILS_FRAGMENT}\n ${ORDER_ITEM_DETAILS_FRAGMENT}\n ${BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT}\n ${ORDER_SUMMARY_FRAGMENT}\n ${ADDRESS_FRAGMENT}\n ${RETURNS_FRAGMENT}\n ${ORDER_ITEM_FRAGMENT}\n ${GIFT_WRAPPING_FRAGMENT}\n ${GIFT_MESSAGE_FRAGMENT}\n ${APPLIED_GIFT_CARDS_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n ADDRESS_FRAGMENT,\n BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT,\n GIFT_CARD_DETAILS_FRAGMENT,\n ORDER_ITEM_DETAILS_FRAGMENT,\n ORDER_SUMMARY_FRAGMENT,\n PRICE_DETAILS_FRAGMENT,\n PRODUCT_DETAILS_FRAGMENT,\n ORDER_ITEM_FRAGMENT,\n GIFT_WRAPPING_FRAGMENT,\n GIFT_MESSAGE_FRAGMENT,\n APPLIED_GIFT_CARDS_FRAGMENT,\n} from '@/order/api/fragments';\n\nexport const PLACE_ORDER_FRAGMENT = /* GraphQL */ `\n fragment PLACE_ORDER_FRAGMENT on CustomerOrder {\n printed_card_included\n gift_receipt_included\n gift_wrapping {\n ...GIFT_WRAPPING_FRAGMENT\n }\n gift_message {\n ...GIFT_MESSAGE_FRAGMENT\n }\n applied_gift_cards {\n ...APPLIED_GIFT_CARDS_FRAGMENT\n }\n email\n available_actions\n status\n number\n token\n id\n order_date\n carrier\n shipping_method\n is_virtual\n applied_coupons {\n code\n }\n shipments {\n id\n number\n tracking {\n title\n number\n carrier\n }\n comments {\n message\n timestamp\n }\n items {\n id\n product_sku\n product_name\n order_item {\n ...ORDER_ITEM_DETAILS_FRAGMENT\n ... on GiftCardOrderItem {\n ...GIFT_CARD_DETAILS_FRAGMENT\n product {\n ...PRODUCT_DETAILS_FRAGMENT\n }\n }\n }\n }\n }\n payment_methods {\n name\n type\n }\n shipping_address {\n ...ADDRESS_FRAGMENT\n }\n billing_address {\n ...ADDRESS_FRAGMENT\n }\n items {\n ...ORDER_ITEM_FRAGMENT\n }\n total {\n ...ORDER_SUMMARY_FRAGMENT\n }\n }\n\n ${ADDRESS_FRAGMENT}\n ${BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT}\n ${GIFT_CARD_DETAILS_FRAGMENT}\n ${ORDER_ITEM_DETAILS_FRAGMENT}\n ${ORDER_SUMMARY_FRAGMENT}\n ${PRICE_DETAILS_FRAGMENT}\n ${PRODUCT_DETAILS_FRAGMENT}\n ${ORDER_ITEM_FRAGMENT}\n ${GIFT_WRAPPING_FRAGMENT}\n ${GIFT_MESSAGE_FRAGMENT}\n ${APPLIED_GIFT_CARDS_FRAGMENT}\n`;"],"names":["REQUEST_RETURN_ORDER_FRAGMENT","ADDRESS_FRAGMENT","PRODUCT_DETAILS_FRAGMENT","PRICE_DETAILS_FRAGMENT","GIFT_CARD_DETAILS_FRAGMENT","ORDER_ITEM_DETAILS_FRAGM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AsB;AAAA,IACtBD,CAAqB;AAAA,IACrBD,CAA2B;"}
1
+ {"version":3,"file":"fragments.js","sources":["/@dropins/storefront-order/src/api/graphql/RequestReturnOrderFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/CustomerAddressFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/OrderItemsFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/OrderSummaryFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/ReturnsFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/GiftFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/GuestOrderFragment.graphql.ts","/@dropins/storefront-order/src/api/graphql/PlaceOrderFragment.graphql.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const REQUEST_RETURN_ORDER_FRAGMENT = /* GraphQL */ `\n fragment REQUEST_RETURN_ORDER_FRAGMENT on Return {\n __typename\n uid\n status\n number\n created_at\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment ADDRESS_FRAGMENT on OrderAddress {\n city\n company\n country_code\n fax\n firstname\n lastname\n middlename\n postcode\n prefix\n region\n region_id\n street\n suffix\n telephone\n vat_id\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const PRODUCT_DETAILS_FRAGMENT = /* GraphQL */ `\n fragment PRODUCT_DETAILS_FRAGMENT on ProductInterface {\n __typename\n canonical_url\n url_key\n uid\n name\n sku\n only_x_left_in_stock\n gift_wrapping_price {\n currency\n value\n }\n stock_status\n thumbnail {\n label\n url\n }\n price_range {\n maximum_price {\n regular_price {\n currency\n value\n }\n }\n }\n }\n`;\n\nexport const PRICE_DETAILS_FRAGMENT = /* GraphQL */ `\n fragment PRICE_DETAILS_FRAGMENT on OrderItemInterface {\n prices {\n price_including_tax {\n value\n currency\n }\n original_price {\n value\n currency\n }\n original_price_including_tax {\n value\n currency\n }\n price {\n value\n currency\n }\n }\n }\n`;\n\nexport const GIFT_CARD_DETAILS_FRAGMENT = /* GraphQL */ `\n fragment GIFT_CARD_DETAILS_FRAGMENT on GiftCardOrderItem {\n ...PRICE_DETAILS_FRAGMENT\n gift_message {\n ...GIFT_MESSAGE_FRAGMENT\n }\n gift_card {\n recipient_name\n recipient_email\n sender_name\n sender_email\n message\n }\n }\n`;\n\nexport const ORDER_ITEM_DETAILS_FRAGMENT = /* GraphQL */ `\n fragment ORDER_ITEM_DETAILS_FRAGMENT on OrderItemInterface {\n gift_wrapping {\n ...GIFT_WRAPPING_FRAGMENT\n }\n __typename\n status\n product_sku\n eligible_for_return\n product_name\n product_url_key\n id\n quantity_ordered\n quantity_shipped\n quantity_canceled\n quantity_invoiced\n quantity_refunded\n quantity_return_requested\n gift_message {\n ...GIFT_MESSAGE_FRAGMENT\n }\n product_sale_price {\n value\n currency\n }\n selected_options {\n label\n value\n }\n product {\n ...PRODUCT_DETAILS_FRAGMENT\n }\n ...PRICE_DETAILS_FRAGMENT\n }\n`;\n\nexport const BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT = /* GraphQL */ `\n fragment BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT on BundleOrderItem {\n ...PRICE_DETAILS_FRAGMENT\n bundle_options {\n uid\n label\n values {\n uid\n product_name\n }\n }\n }\n`;\n\nexport const DOWNLOADABLE_ORDER_ITEMS_FRAGMENT = /* GraphQL */ `\n fragment DOWNLOADABLE_ORDER_ITEMS_FRAGMENT on DownloadableOrderItem {\n product_name\n downloadable_links {\n sort_order\n title\n }\n }\n`;\n\nexport const ORDER_ITEM_FRAGMENT = /* GraphQL */ `\n fragment ORDER_ITEM_FRAGMENT on OrderItemInterface {\n ...ORDER_ITEM_DETAILS_FRAGMENT\n ... on BundleOrderItem {\n ...BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT\n }\n ... on GiftCardOrderItem {\n ...GIFT_CARD_DETAILS_FRAGMENT\n product {\n ...PRODUCT_DETAILS_FRAGMENT\n }\n }\n ...DOWNLOADABLE_ORDER_ITEMS_FRAGMENT\n }\n\n ${DOWNLOADABLE_ORDER_ITEMS_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const ORDER_SUMMARY_FRAGMENT = /* GraphQL */ `\n fragment ORDER_SUMMARY_FRAGMENT on OrderTotal {\n gift_options {\n gift_wrapping_for_items {\n currency\n value\n }\n gift_wrapping_for_items_incl_tax {\n currency\n value\n }\n gift_wrapping_for_order {\n currency\n value\n }\n gift_wrapping_for_order_incl_tax {\n currency\n value\n }\n printed_card {\n currency\n value\n }\n printed_card_incl_tax {\n currency\n value\n }\n }\n grand_total {\n value\n currency\n }\n grand_total_excl_tax {\n value\n currency\n }\n total_giftcard {\n currency\n value\n }\n subtotal_excl_tax {\n currency\n value\n }\n subtotal_incl_tax {\n currency\n value\n }\n taxes {\n amount {\n currency\n value\n }\n rate\n title\n }\n total_tax {\n currency\n value\n }\n total_shipping {\n currency\n value\n }\n discounts {\n amount {\n currency\n value\n }\n label\n }\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const RETURNS_FRAGMENT = /* GraphQL */ `\n fragment RETURNS_FRAGMENT on Returns {\n __typename\n items {\n number\n status\n created_at\n shipping {\n tracking {\n status {\n text\n type\n }\n carrier {\n uid\n label\n }\n tracking_number\n }\n }\n order {\n number\n token\n }\n items {\n uid\n quantity\n status\n request_quantity\n order_item {\n ...ORDER_ITEM_DETAILS_FRAGMENT\n ... on GiftCardOrderItem {\n ...GIFT_CARD_DETAILS_FRAGMENT\n product {\n ...PRODUCT_DETAILS_FRAGMENT\n }\n }\n }\n }\n }\n }\n`;\n","export const APPLIED_GIFT_CARDS_FRAGMENT = `\n fragment APPLIED_GIFT_CARDS_FRAGMENT on ApplyGiftCardToOrder {\n __typename\n code\n applied_balance {\n value\n currency\n }\n }\n`;\n\nexport const GIFT_MESSAGE_FRAGMENT = `\n fragment GIFT_MESSAGE_FRAGMENT on GiftMessage {\n __typename\n from\n to\n message\n }\n`;\n\nexport const GIFT_WRAPPING_FRAGMENT = `\n fragment GIFT_WRAPPING_FRAGMENT on GiftWrapping {\n __typename\n uid\n design\n image {\n url\n }\n price {\n value\n currency\n }\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n ADDRESS_FRAGMENT,\n BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT,\n GIFT_CARD_DETAILS_FRAGMENT,\n ORDER_ITEM_DETAILS_FRAGMENT,\n PRICE_DETAILS_FRAGMENT,\n PRODUCT_DETAILS_FRAGMENT,\n ORDER_SUMMARY_FRAGMENT,\n RETURNS_FRAGMENT,\n ORDER_ITEM_FRAGMENT,\n GIFT_WRAPPING_FRAGMENT,\n GIFT_MESSAGE_FRAGMENT,\n APPLIED_GIFT_CARDS_FRAGMENT,\n} from '@/order/api/fragments';\n\nexport const GUEST_ORDER_FRAGMENT = /* GraphQL */ `\n fragment GUEST_ORDER_FRAGMENT on CustomerOrder {\n printed_card_included\n gift_receipt_included\n gift_wrapping {\n ...GIFT_WRAPPING_FRAGMENT\n }\n gift_message {\n ...GIFT_MESSAGE_FRAGMENT\n }\n applied_gift_cards {\n ...APPLIED_GIFT_CARDS_FRAGMENT\n }\n items_eligible_for_return {\n ...ORDER_ITEM_DETAILS_FRAGMENT\n }\n email\n id\n number\n order_date\n order_status_change_date\n status\n token\n carrier\n shipping_method\n available_actions\n is_virtual\n returns {\n ...RETURNS_FRAGMENT\n }\n payment_methods {\n name\n type\n }\n applied_coupons {\n code\n }\n shipments {\n id\n tracking {\n title\n number\n carrier\n }\n comments {\n message\n timestamp\n }\n items {\n __typename\n id\n product_sku\n product_name\n order_item {\n ...ORDER_ITEM_DETAILS_FRAGMENT\n ... on GiftCardOrderItem {\n ...GIFT_CARD_DETAILS_FRAGMENT\n product {\n ...PRODUCT_DETAILS_FRAGMENT\n }\n }\n }\n }\n }\n payment_methods {\n name\n type\n }\n shipping_address {\n ...ADDRESS_FRAGMENT\n }\n billing_address {\n ...ADDRESS_FRAGMENT\n }\n items {\n ...ORDER_ITEM_FRAGMENT\n }\n total {\n ...ORDER_SUMMARY_FRAGMENT\n }\n }\n ${PRODUCT_DETAILS_FRAGMENT}\n ${PRICE_DETAILS_FRAGMENT}\n ${GIFT_CARD_DETAILS_FRAGMENT}\n ${ORDER_ITEM_DETAILS_FRAGMENT}\n ${BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT}\n ${ORDER_SUMMARY_FRAGMENT}\n ${ADDRESS_FRAGMENT}\n ${RETURNS_FRAGMENT}\n ${ORDER_ITEM_FRAGMENT}\n ${GIFT_WRAPPING_FRAGMENT}\n ${GIFT_MESSAGE_FRAGMENT}\n ${APPLIED_GIFT_CARDS_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n ADDRESS_FRAGMENT,\n BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT,\n GIFT_CARD_DETAILS_FRAGMENT,\n ORDER_ITEM_DETAILS_FRAGMENT,\n ORDER_SUMMARY_FRAGMENT,\n PRICE_DETAILS_FRAGMENT,\n PRODUCT_DETAILS_FRAGMENT,\n ORDER_ITEM_FRAGMENT,\n GIFT_WRAPPING_FRAGMENT,\n GIFT_MESSAGE_FRAGMENT,\n APPLIED_GIFT_CARDS_FRAGMENT,\n} from '@/order/api/fragments';\n\nexport const PLACE_ORDER_FRAGMENT = /* GraphQL */ `\n fragment PLACE_ORDER_FRAGMENT on PlaceOrderOutput {\n errors {\n code\n message\n }\n orderV2 {\n printed_card_included\n gift_receipt_included\n gift_wrapping {\n ...GIFT_WRAPPING_FRAGMENT\n }\n gift_message {\n ...GIFT_MESSAGE_FRAGMENT\n }\n applied_gift_cards {\n ...APPLIED_GIFT_CARDS_FRAGMENT\n }\n email\n available_actions\n status\n number\n token\n id\n order_date\n carrier\n shipping_method\n is_virtual\n applied_coupons {\n code\n }\n shipments {\n id\n number\n tracking {\n title\n number\n carrier\n }\n comments {\n message\n timestamp\n }\n items {\n id\n product_sku\n product_name\n order_item {\n ...ORDER_ITEM_DETAILS_FRAGMENT\n ... on GiftCardOrderItem {\n ...GIFT_CARD_DETAILS_FRAGMENT\n product {\n ...PRODUCT_DETAILS_FRAGMENT\n }\n }\n }\n }\n }\n payment_methods {\n name\n type\n }\n shipping_address {\n ...ADDRESS_FRAGMENT\n }\n billing_address {\n ...ADDRESS_FRAGMENT\n }\n items {\n ...ORDER_ITEM_FRAGMENT\n }\n total {\n ...ORDER_SUMMARY_FRAGMENT\n }\n }\n }\n\n ${ADDRESS_FRAGMENT}\n ${BUNDLE_ORDER_ITEM_DETAILS_FRAGMENT}\n ${GIFT_CARD_DETAILS_FRAGMENT}\n ${ORDER_ITEM_DETAILS_FRAGMENT}\n ${ORDER_SUMMARY_FRAGMENT}\n ${PRICE_DETAILS_FRAGMENT}\n ${PRODUCT_DETAILS_FRAGMENT}\n ${ORDER_ITEM_FRAGMENT}\n ${GIFT_WRAPPING_FRAGMENT}\n ${GIFT_MESSAGE_FRAGMENT}\n ${APPLIED_GIFT_CARDS_FRAGMENT}\n`;\n"],"names":["REQUEST_RETURN_ORDER_FRAGMENT","ADDRESS_FRAGMENT","PRODUCT_DET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AA0B;AAAA,IAC1BC,CAA2B;AAAA,IAC3BI,CAAsB;AAAA,IACtBN,CAAsB;AAAA,IACtBD,CAAwB;AAAA,IACxBM,CAAmB;AAAA,IACnBK,CAAsB;AAAA,IACtBD,CAAqB;AAAA,IACrBD,CAA2B;"}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@dropins/storefront-order", "version": "1.4.0-alpha1", "@dropins/tools": "^1.4.0", "license": "SEE LICENSE IN LICENSE.md"}
1
+ {"name": "@dropins/storefront-order", "version": "1.4.0-alpha2", "@dropins/tools": "^1.4.0", "license": "SEE LICENSE IN LICENSE.md"}