@medusajs/core-flows 2.7.2-snapshot-20250509130548 → 2.7.2-snapshot-20250512074420

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.
Files changed (40) hide show
  1. package/dist/cart/steps/compensate-payment-if-needed.d.ts.map +1 -1
  2. package/dist/cart/steps/compensate-payment-if-needed.js +31 -13
  3. package/dist/cart/steps/compensate-payment-if-needed.js.map +1 -1
  4. package/dist/cart/utils/prepare-line-item-data.js +2 -2
  5. package/dist/cart/utils/prepare-line-item-data.js.map +1 -1
  6. package/dist/cart/workflows/complete-cart.d.ts.map +1 -1
  7. package/dist/cart/workflows/complete-cart.js +6 -10
  8. package/dist/cart/workflows/complete-cart.js.map +1 -1
  9. package/dist/cart/workflows/index.d.ts +1 -0
  10. package/dist/cart/workflows/index.d.ts.map +1 -1
  11. package/dist/cart/workflows/index.js +1 -0
  12. package/dist/cart/workflows/index.js.map +1 -1
  13. package/dist/cart/workflows/refund-payment-recreate-payment-session.d.ts +51 -0
  14. package/dist/cart/workflows/refund-payment-recreate-payment-session.d.ts.map +1 -0
  15. package/dist/cart/workflows/refund-payment-recreate-payment-session.js +35 -0
  16. package/dist/cart/workflows/refund-payment-recreate-payment-session.js.map +1 -0
  17. package/dist/cart/workflows/transfer-cart-customer.d.ts.map +1 -1
  18. package/dist/cart/workflows/transfer-cart-customer.js +8 -0
  19. package/dist/cart/workflows/transfer-cart-customer.js.map +1 -1
  20. package/dist/order/workflows/payments/refund-captured-payments.d.ts +1 -0
  21. package/dist/order/workflows/payments/refund-captured-payments.d.ts.map +1 -1
  22. package/dist/order/workflows/payments/refund-captured-payments.js +3 -2
  23. package/dist/order/workflows/payments/refund-captured-payments.js.map +1 -1
  24. package/dist/payment/steps/refund-payments.d.ts +4 -0
  25. package/dist/payment/steps/refund-payments.d.ts.map +1 -1
  26. package/dist/payment/steps/refund-payments.js.map +1 -1
  27. package/dist/payment/workflows/process-payment.d.ts.map +1 -1
  28. package/dist/payment/workflows/process-payment.js +28 -1
  29. package/dist/payment/workflows/process-payment.js.map +1 -1
  30. package/dist/payment/workflows/refund-payments.d.ts +4 -0
  31. package/dist/payment/workflows/refund-payments.d.ts.map +1 -1
  32. package/dist/payment/workflows/refund-payments.js +11 -6
  33. package/dist/payment/workflows/refund-payments.js.map +1 -1
  34. package/dist/payment-collection/workflows/create-payment-session.d.ts.map +1 -1
  35. package/dist/payment-collection/workflows/create-payment-session.js +1 -0
  36. package/dist/payment-collection/workflows/create-payment-session.js.map +1 -1
  37. package/dist/payment-collection/workflows/index.d.ts +1 -1
  38. package/dist/payment-collection/workflows/index.js +1 -1
  39. package/dist/tsconfig.tsbuildinfo +1 -1
  40. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"compensate-payment-if-needed.d.ts","sourceRoot":"","sources":["../../../src/cart/steps/compensate-payment-if-needed.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,eAAO,MAAM,+BAA+B,iCAAiC,CAAA;AAC7E;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,sGAkDzC,CAAA"}
1
+ {"version":3,"file":"compensate-payment-if-needed.d.ts","sourceRoot":"","sources":["../../../src/cart/steps/compensate-payment-if-needed.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,eAAO,MAAM,+BAA+B,iCAAiC,CAAA;AAC7E;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,sGA4DzC,CAAA"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.compensatePaymentIfNeededStep = exports.compensatePaymentIfNeededStepId = void 0;
4
4
  const utils_1 = require("@medusajs/framework/utils");
5
5
  const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
6
+ const refund_payment_recreate_payment_session_1 = require("../workflows/refund-payment-recreate-payment-session");
6
7
  exports.compensatePaymentIfNeededStepId = "compensate-payment-if-needed";
7
8
  /**
8
9
  * Purpose of this step is to be the last compensation in cart completion workflow.
@@ -21,24 +22,41 @@ exports.compensatePaymentIfNeededStep = (0, workflows_sdk_1.createStep)(exports.
21
22
  return;
22
23
  }
23
24
  const logger = container.resolve(utils_1.ContainerRegistrationKeys.LOGGER);
24
- const paymentModule = container.resolve(utils_1.Modules.PAYMENT);
25
- const paymentSession = await paymentModule.retrievePaymentSession(paymentSessionId, {
26
- relations: ["payment"],
25
+ const query = container.resolve(utils_1.ContainerRegistrationKeys.QUERY);
26
+ const { data: paymentSessions } = await query.graph({
27
+ entity: "payment_session",
28
+ fields: [
29
+ "id",
30
+ "payment_collection_id",
31
+ "amount",
32
+ "raw_amount",
33
+ "provider_id",
34
+ "data",
35
+ "payment.id",
36
+ "payment.captured_at",
37
+ "payment.customer.id",
38
+ ],
39
+ filters: {
40
+ id: paymentSessionId,
41
+ },
27
42
  });
28
- if (paymentSession.status === utils_1.PaymentSessionStatus.AUTHORIZED) {
29
- try {
30
- await paymentModule.cancelPayment(paymentSession.id);
31
- }
32
- catch (e) {
33
- logger.error(`Error was thrown trying to cancel payment session - ${paymentSession.id} - ${e}`);
34
- }
43
+ const paymentSession = paymentSessions[0];
44
+ if (!paymentSession) {
45
+ return;
35
46
  }
36
- if (paymentSession.status === utils_1.PaymentSessionStatus.CAPTURED &&
37
- paymentSession.payment?.id) {
47
+ if (paymentSession.payment?.captured_at) {
38
48
  try {
39
- await paymentModule.refundPayment({
49
+ const workflowInput = {
50
+ payment_collection_id: paymentSession.payment_collection_id,
51
+ provider_id: paymentSession.provider_id,
52
+ customer_id: paymentSession.payment?.customer?.id,
53
+ data: paymentSession.data,
54
+ amount: paymentSession.raw_amount ?? paymentSession.amount,
40
55
  payment_id: paymentSession.payment.id,
41
56
  note: "Refunded due to cart completion failure",
57
+ };
58
+ await (0, refund_payment_recreate_payment_session_1.refundPaymentAndRecreatePaymentSessionWorkflow)(container).run({
59
+ input: workflowInput,
42
60
  });
43
61
  }
44
62
  catch (e) {
@@ -1 +1 @@
1
- {"version":3,"file":"compensate-payment-if-needed.js","sourceRoot":"","sources":["../../../src/cart/steps/compensate-payment-if-needed.ts"],"names":[],"mappings":";;;AACA,qDAIkC;AAClC,qEAA4E;AAY/D,QAAA,+BAA+B,GAAG,8BAA8B,CAAA;AAC7E;;;;;;;;GAQG;AACU,QAAA,6BAA6B,GAAG,IAAA,0BAAU,EACrD,uCAA+B,EAC/B,KAAK,EAAE,IAAwC,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAChE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAA;IAEnC,OAAO,IAAI,4BAAY,CAAC,kBAAkB,CAAC,CAAA;AAC7C,CAAC,EACD,KAAK,EAAE,gBAAgB,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACxC,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,OAAM;IACR,CAAC;IAED,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAS,iCAAyB,CAAC,MAAM,CAAC,CAAA;IAC1E,MAAM,aAAa,GAAG,SAAS,CAAC,OAAO,CACrC,eAAO,CAAC,OAAO,CAChB,CAAA;IAED,MAAM,cAAc,GAAG,MAAM,aAAa,CAAC,sBAAsB,CAC/D,gBAAgB,EAChB;QACE,SAAS,EAAE,CAAC,SAAS,CAAC;KACvB,CACF,CAAA;IAED,IAAI,cAAc,CAAC,MAAM,KAAK,4BAAoB,CAAC,UAAU,EAAE,CAAC;QAC9D,IAAI,CAAC;YACH,MAAM,aAAa,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,CAAC,CAAA;QACtD,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,CAAC,KAAK,CACV,uDAAuD,cAAc,CAAC,EAAE,MAAM,CAAC,EAAE,CAClF,CAAA;QACH,CAAC;IACH,CAAC;IAED,IACE,cAAc,CAAC,MAAM,KAAK,4BAAoB,CAAC,QAAQ;QACvD,cAAc,CAAC,OAAO,EAAE,EAAE,EAC1B,CAAC;QACD,IAAI,CAAC;YACH,MAAM,aAAa,CAAC,aAAa,CAAC;gBAChC,UAAU,EAAE,cAAc,CAAC,OAAO,CAAC,EAAE;gBACrC,IAAI,EAAE,yCAAyC;aAChD,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,CAAC,KAAK,CACV,+CAA+C,cAAc,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,EAAE,CACnF,CAAA;QACH,CAAC;IACH,CAAC;AACH,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"compensate-payment-if-needed.js","sourceRoot":"","sources":["../../../src/cart/steps/compensate-payment-if-needed.ts"],"names":[],"mappings":";;;AACA,qDAAqE;AACrE,qEAA4E;AAC5E,kHAAqH;AAYxG,QAAA,+BAA+B,GAAG,8BAA8B,CAAA;AAC7E;;;;;;;;GAQG;AACU,QAAA,6BAA6B,GAAG,IAAA,0BAAU,EACrD,uCAA+B,EAC/B,KAAK,EAAE,IAAwC,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAChE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAA;IAEnC,OAAO,IAAI,4BAAY,CAAC,kBAAkB,CAAC,CAAA;AAC7C,CAAC,EACD,KAAK,EAAE,gBAAgB,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACxC,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,OAAM;IACR,CAAC;IAED,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAS,iCAAyB,CAAC,MAAM,CAAC,CAAA;IAC1E,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,iCAAyB,CAAC,KAAK,CAAC,CAAA;IAEhE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC;QAClD,MAAM,EAAE,iBAAiB;QACzB,MAAM,EAAE;YACN,IAAI;YACJ,uBAAuB;YACvB,QAAQ;YACR,YAAY;YACZ,aAAa;YACb,MAAM;YACN,YAAY;YACZ,qBAAqB;YACrB,qBAAqB;SACtB;QACD,OAAO,EAAE;YACP,EAAE,EAAE,gBAAgB;SACrB;KACF,CAAC,CAAA;IACF,MAAM,cAAc,GAAG,eAAe,CAAC,CAAC,CAAC,CAAA;IAEzC,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,OAAM;IACR,CAAC;IAED,IAAI,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC;QACxC,IAAI,CAAC;YACH,MAAM,aAAa,GAAG;gBACpB,qBAAqB,EAAE,cAAc,CAAC,qBAAqB;gBAC3D,WAAW,EAAE,cAAc,CAAC,WAAW;gBACvC,WAAW,EAAE,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;gBACjD,IAAI,EAAE,cAAc,CAAC,IAAI;gBACzB,MAAM,EAAE,cAAc,CAAC,UAAU,IAAI,cAAc,CAAC,MAAM;gBAC1D,UAAU,EAAE,cAAc,CAAC,OAAO,CAAC,EAAE;gBACrC,IAAI,EAAE,yCAAyC;aAChD,CAAA;YAED,MAAM,IAAA,wFAA8C,EAAC,SAAS,CAAC,CAAC,GAAG,CAAC;gBAClE,KAAK,EAAE,aAAa;aACrB,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,CAAC,KAAK,CACV,+CAA+C,cAAc,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,EAAE,CACnF,CAAA;QACH,CAAC;IACH,CAAC;AACH,CAAC,CACF,CAAA"}
@@ -26,8 +26,8 @@ function prepareLineItemData(data) {
26
26
  : hasShippingProfile || someInventoryRequiresShipping;
27
27
  let lineItem = {
28
28
  quantity: item?.quantity,
29
- title: variant?.title ?? item?.title,
30
- subtitle: variant?.product?.title ?? item?.subtitle,
29
+ title: variant?.product?.title ?? item?.title,
30
+ subtitle: variant?.title ?? item?.subtitle,
31
31
  thumbnail: variant?.product?.thumbnail ?? item?.thumbnail,
32
32
  product_id: variant?.product?.id ?? item?.product_id,
33
33
  product_title: variant?.product?.title ?? item?.product_title,
@@ -1 +1 @@
1
- {"version":3,"file":"prepare-line-item-data.js","sourceRoot":"","sources":["../../../src/cart/utils/prepare-line-item-data.ts"],"names":[],"mappings":";;AAgFA,kDAmGC;AAED,kDAQC;AAED,wDAQC;AA7LD,qDAKkC;AAiElC,SAAgB,mBAAmB,CAAC,IAA8B;IAChE,MAAM,EACJ,IAAI,EACJ,OAAO,EACP,MAAM,EACN,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,cAAc,GACf,GAAG,IAAI,CAAA;IAER,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAA;IACpD,CAAC;IAED,IAAI,kBAAkB,GAAG,IAAI,EAAE,qBAAqB,CAAA;IAEpD,MAAM,WAAW,GACf,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,eAAe;QAC5D,qBAAa,CAAC,IAAI,CAAA;IAEpB,IACE,CAAC,IAAA,iBAAS,EAAC,kBAAkB,CAAC;QAC9B,WAAW;QACX,CAAC,cAAM,CAAC,EAAE,CACR,OAAO,CAAC,gBAAgB,EAAE,eAAe,EACzC,OAAO,CAAC,gBAAgB,EAAE,iBAAiB,CAC5C,EACD,CAAC;QACD,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAA;IAC/D,CAAC;IAED,MAAM,kBAAkB,GAAG,IAAA,iBAAS,EACjC,OAAO,EAAE,OAA6B,EAAE,gBAAgB,EAAE,EAAE,CAC9D,CAAA;IAED,MAAM,6BAA6B,GAAG,CAAC,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,CACpE,CAAC,aAAa,EAAE,EAAE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,EAAE,CAAC,CAAC,WAAW;KAC3B,CAAC,CAAC,CAAA;AACL,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAgC;IACrE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACtB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,WAAW,EAAE,CAAC,CAAC,WAAW;QAC1B,YAAY,EAAE,CAAC,CAAC,YAAY;QAC5B,WAAW,EAAE,CAAC,CAAC,YAAY;KAC5B,CAAC,CAAC,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"prepare-line-item-data.js","sourceRoot":"","sources":["../../../src/cart/utils/prepare-line-item-data.ts"],"names":[],"mappings":";;AAgFA,kDAmGC;AAED,kDAQC;AAED,wDAQC;AA7LD,qDAKkC;AAiElC,SAAgB,mBAAmB,CAAC,IAA8B;IAChE,MAAM,EACJ,IAAI,EACJ,OAAO,EACP,MAAM,EACN,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,cAAc,GACf,GAAG,IAAI,CAAA;IAER,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAA;IACpD,CAAC;IAED,IAAI,kBAAkB,GAAG,IAAI,EAAE,qBAAqB,CAAA;IAEpD,MAAM,WAAW,GACf,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,eAAe;QAC5D,qBAAa,CAAC,IAAI,CAAA;IAEpB,IACE,CAAC,IAAA,iBAAS,EAAC,kBAAkB,CAAC;QAC9B,WAAW;QACX,CAAC,cAAM,CAAC,EAAE,CACR,OAAO,CAAC,gBAAgB,EAAE,eAAe,EACzC,OAAO,CAAC,gBAAgB,EAAE,iBAAiB,CAC5C,EACD,CAAC;QACD,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAA;IAC/D,CAA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AAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACtB,WAAW,EAAE,CAAC,CAAC,WAAW;QAC1B,WAAW,EAAE,CAAC,CAAC,WAAW;QAC1B,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,WAAW,EAAE,CAAC,CAAC,WAAW;KAC3B,CAAC,CAAC,CAAA;AACL,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAgC;IACrE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACtB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,WAAW,EAAE,CAAC,CAAC,WAAW;QAC1B,YAAY,EAAE,CAAC,CAAC,YAAY;QAC5B,WAAW,EAAE,CAAC,CAAC,YAAY;KAC5B,CAAC,CAAC,CAAA;AACL,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"complete-cart.d.ts","sourceRoot":"","sources":["../../../src/cart/workflows/complete-cart.ts"],"names":[],"mappings":"AAWA,OAAO,EAML,YAAY,EAEb,MAAM,mCAAmC,CAAA;AA0B1C;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,eAAO,MAAM,UAAU,QAAmB,CAAA;AAE1C,eAAO,MAAM,sBAAsB,kBAAkB,CAAA;AACrD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,oBAAoB;;;aAmThC,CAAA"}
1
+ {"version":3,"file":"complete-cart.d.ts","sourceRoot":"","sources":["../../../src/cart/workflows/complete-cart.ts"],"names":[],"mappings":"AAWA,OAAO,EAML,YAAY,EAEb,MAAM,mCAAmC,CAAA;AA0B1C;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,eAAO,MAAM,UAAU,QAAmB,CAAA;AAE1C,eAAO,MAAM,sBAAsB,kBAAkB,CAAA;AACrD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,oBAAoB;;;aA0ShC,CAAA"}
@@ -60,16 +60,12 @@ exports.completeCartWorkflow = (0, workflows_sdk_1.createWorkflow)({
60
60
  }).config({
61
61
  name: "cart-query",
62
62
  });
63
- // this is only run when the cart is completed for the first time (same condition as below)
64
- // but needs to be before the validation step
65
- const paymentSessions = (0, workflows_sdk_1.when)("create-order-payment-compensation", { orderId }, ({ orderId }) => !orderId).then(() => {
66
- const paymentSessions = (0, steps_1.validateCartPaymentsStep)({ cart });
67
- // purpose of this step is to run compensation if cart completion fails
68
- // and tries to cancel or refund the payment depending on the status.
69
- (0, compensate_payment_if_needed_1.compensatePaymentIfNeededStep)({
70
- payment_session_id: paymentSessions[0].id,
71
- });
72
- return paymentSessions;
63
+ // this needs to be before the validation step
64
+ const paymentSessions = (0, steps_1.validateCartPaymentsStep)({ cart });
65
+ // purpose of this step is to run compensation if cart completion fails
66
+ // and tries to refund the payment if captured
67
+ (0, compensate_payment_if_needed_1.compensatePaymentIfNeededStep)({
68
+ payment_session_id: paymentSessions[0].id,
73
69
  });
74
70
  const validate = (0, workflows_sdk_1.createHook)("validate", {
75
71
  input,
@@ -1 +1 @@
1
- {"version":3,"file":"complete-cart.js","sourceRoot":"","sources":["../../../src/cart/workflows/complete-cart.ts"],"names":[],"mappings":";;;AAKA,qDAKkC;AAClC,qEAQ0C;AAC1C,yCAKqB;AACrB,mFAAiF;AACjF,mEAAkE;AAClE,6FAA2F;AAC3F,yEAAwE;AACxE,oCAIiB;AACjB,wFAAqF;AACr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AAO,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;QAClE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,OAAO,EAAgC,CAAA;IACnE,CAAC,CAAC,CAAA;IAEF,OAAO,IAAI,gCAAgB,CAAC,MAAM,EAAE;QAClC,KAAK,EAAE,CAAC,QAAQ,CAAC;KAClB,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
@@ -11,6 +11,7 @@ export * from "./list-shipping-options-for-cart-with-pricing";
11
11
  export * from "./refresh-cart-items";
12
12
  export * from "./refresh-cart-shipping-methods";
13
13
  export * from "./refresh-payment-collection";
14
+ export * from "./refund-payment-recreate-payment-session";
14
15
  export * from "./transfer-cart-customer";
15
16
  export * from "./update-cart";
16
17
  export * from "./update-cart-promotions";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cart/workflows/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sCAAsC,CAAA;AACpD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kCAAkC,CAAA;AAChD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,sBAAsB,CAAA;AACpC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cart/workflows/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sCAAsC,CAAA;AACpD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kCAAkC,CAAA;AAChD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,sBAAsB,CAAA;AACpC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2CAA2C,CAAA;AACzD,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA"}
@@ -27,6 +27,7 @@ __exportStar(require("./list-shipping-options-for-cart-with-pricing"), exports);
27
27
  __exportStar(require("./refresh-cart-items"), exports);
28
28
  __exportStar(require("./refresh-cart-shipping-methods"), exports);
29
29
  __exportStar(require("./refresh-payment-collection"), exports);
30
+ __exportStar(require("./refund-payment-recreate-payment-session"), exports);
30
31
  __exportStar(require("./transfer-cart-customer"), exports);
31
32
  __exportStar(require("./update-cart"), exports);
32
33
  __exportStar(require("./update-cart-promotions"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cart/workflows/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C;AAC7C,gDAA6B;AAC7B,kDAA+B;AAC/B,8DAA2C;AAC3C,6DAA0C;AAC1C,iDAA8B;AAC9B,uEAAoD;AACpD,6DAA0C;AAC1C,mEAAgD;AAChD,gFAA6D;AAC7D,uDAAoC;AACpC,kEAA+C;AAC/C,+DAA4C;AAC5C,2DAAwC;AACxC,gDAA6B;AAC7B,2DAAwC;AACxC,6DAA0C;AAC1C,qDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cart/workflows/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C;AAC7C,gDAA6B;AAC7B,kDAA+B;AAC/B,8DAA2C;AAC3C,6DAA0C;AAC1C,iDAA8B;AAC9B,uEAAoD;AACpD,6DAA0C;AAC1C,mEAAgD;AAChD,gFAA6D;AAC7D,uDAAoC;AACpC,kEAA+C;AAC/C,+DAA4C;AAC5C,4EAAyD;AACzD,2DAAwC;AACxC,gDAA6B;AAC7B,2DAAwC;AACxC,6DAA0C;AAC1C,qDAAkC"}
@@ -0,0 +1,51 @@
1
+ import { BigNumberInput, PaymentSessionDTO } from "@medusajs/framework/types";
2
+ /**
3
+ * The data to create payment sessions.
4
+ */
5
+ export interface refundPaymentAndRecreatePaymentSessionWorkflowInput {
6
+ /**
7
+ * The ID of the payment collection to create payment sessions for.
8
+ */
9
+ payment_collection_id: string;
10
+ /**
11
+ * The ID of the payment provider that the payment sessions are associated with.
12
+ * This provider is used to later process the payment sessions and their payments.
13
+ */
14
+ provider_id: string;
15
+ /**
16
+ * The ID of the customer that the payment session should be associated with.
17
+ */
18
+ customer_id?: string;
19
+ /**
20
+ * Custom data relevant for the payment provider to process the payment session.
21
+ * Learn more in [this documentation](https://docs.medusajs.com/resources/commerce-modules/payment/payment-session#data-property).
22
+ */
23
+ data?: Record<string, unknown>;
24
+ /**
25
+ * Additional context that's useful for the payment provider to process the payment session.
26
+ * Currently all of the context is calculated within the workflow.
27
+ */
28
+ context?: Record<string, unknown>;
29
+ /**
30
+ * The ID of the payment to refund.
31
+ */
32
+ payment_id: string;
33
+ /**
34
+ * The amount to refund.
35
+ */
36
+ amount: BigNumberInput;
37
+ /**
38
+ * The note to attach to the refund.
39
+ */
40
+ note?: string;
41
+ }
42
+ export declare const refundPaymentAndRecreatePaymentSessionWorkflowId = "refund-payment-and-recreate-payment-session";
43
+ /**
44
+ * This workflow refunds a payment and creates a new payment session.
45
+ *
46
+ * @summary
47
+ *
48
+ * Refund a payment and create a new payment session.
49
+ */
50
+ export declare const refundPaymentAndRecreatePaymentSessionWorkflow: import("@medusajs/framework/workflows-sdk").ReturnWorkflow<refundPaymentAndRecreatePaymentSessionWorkflowInput, PaymentSessionDTO, []>;
51
+ //# sourceMappingURL=refund-payment-recreate-payment-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refund-payment-recreate-payment-session.d.ts","sourceRoot":"","sources":["../../../src/cart/workflows/refund-payment-recreate-payment-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAS7E;;GAEG;AACH,MAAM,WAAW,mDAAmD;IAClE;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE9B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAEjC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,gDAAgD,gDACd,CAAA;AAC/C;;;;;;GAMG;AACH,eAAO,MAAM,8CAA8C,wIA0B1D,CAAA"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.refundPaymentAndRecreatePaymentSessionWorkflow = exports.refundPaymentAndRecreatePaymentSessionWorkflowId = void 0;
4
+ const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
5
+ const create_payment_session_1 = require("../../payment-collection/workflows/create-payment-session");
6
+ const refund_payments_1 = require("../../payment/workflows/refund-payments");
7
+ exports.refundPaymentAndRecreatePaymentSessionWorkflowId = "refund-payment-and-recreate-payment-session";
8
+ /**
9
+ * This workflow refunds a payment and creates a new payment session.
10
+ *
11
+ * @summary
12
+ *
13
+ * Refund a payment and create a new payment session.
14
+ */
15
+ exports.refundPaymentAndRecreatePaymentSessionWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.refundPaymentAndRecreatePaymentSessionWorkflowId, (input) => {
16
+ refund_payments_1.refundPaymentsWorkflow.runAsStep({
17
+ input: [
18
+ {
19
+ payment_id: input.payment_id,
20
+ note: input.note,
21
+ amount: input.amount,
22
+ },
23
+ ],
24
+ });
25
+ const paymentSession = create_payment_session_1.createPaymentSessionsWorkflow.runAsStep({
26
+ input: {
27
+ payment_collection_id: input.payment_collection_id,
28
+ provider_id: input.provider_id,
29
+ customer_id: input.customer_id,
30
+ data: input.data,
31
+ },
32
+ });
33
+ return new workflows_sdk_1.WorkflowResponse(paymentSession);
34
+ });
35
+ //# sourceMappingURL=refund-payment-recreate-payment-session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refund-payment-recreate-payment-session.js","sourceRoot":"","sources":["../../../src/cart/workflows/refund-payment-recreate-payment-session.ts"],"names":[],"mappings":";;;AACA,qEAI0C;AAC1C,sGAAyG;AACzG,6EAAgF;AA+CnE,QAAA,gDAAgD,GAC3D,6CAA6C,CAAA;AAC/C;;;;;;GAMG;AACU,QAAA,8CAA8C,GAAG,IAAA,8BAAc,EAC1E,wDAAgD,EAChD,CACE,KAAwE,EACnC,EAAE;IACvC,wCAAsB,CAAC,SAAS,CAAC;QAC/B,KAAK,EAAE;YACL;gBACE,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,MAAM,EAAE,KAAK,CAAC,MAAM;aACrB;SACF;KACF,CAAC,CAAA;IAEF,MAAM,cAAc,GAAG,sDAA6B,CAAC,SAAS,CAAC;QAC7D,KAAK,EAAE;YACL,qBAAqB,EAAE,KAAK,CAAC,qBAAqB;YAClD,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,IAAI,EAAE,KAAK,CAAC,IAAI;SACjB;KACF,CAAC,CAAA;IAEF,OAAO,IAAI,gCAAgB,CAAC,cAAc,CAAC,CAAA;AAC7C,CAAC,CACF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-cart-customer.d.ts","sourceRoot":"","sources":["../../../src/cart/workflows/transfer-cart-customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,YAAY,EAEb,MAAM,mCAAmC,CAAA;AAK1C;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,4BAA4B;;;aAsExC,CAAA"}
1
+ {"version":3,"file":"transfer-cart-customer.d.ts","sourceRoot":"","sources":["../../../src/cart/workflows/transfer-cart-customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,YAAY,EAEb,MAAM,mCAAmC,CAAA;AAM1C;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,4BAA4B;;;aA8ExC,CAAA"}
@@ -5,6 +5,7 @@ const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
5
5
  const common_1 = require("../../common");
6
6
  const steps_1 = require("../steps");
7
7
  const refresh_cart_items_1 = require("./refresh-cart-items");
8
+ const utils_1 = require("@medusajs/framework/utils");
8
9
  exports.transferCartCustomerWorkflowId = "transfer-cart-customer";
9
10
  /**
10
11
  * This workflow transfers a cart's customer ownership to another customer. It's useful if a customer logs in after
@@ -71,6 +72,13 @@ exports.transferCartCustomerWorkflow = (0, workflows_sdk_1.createWorkflow)(expor
71
72
  refresh_cart_items_1.refreshCartItemsWorkflow.runAsStep({
72
73
  input: { cart_id: input.id, force_refresh: true },
73
74
  });
75
+ (0, common_1.emitEventStep)({
76
+ eventName: utils_1.CartWorkflowEvents.CUSTOMER_TRANSFERRED,
77
+ data: {
78
+ id: input.id,
79
+ customer_id: customer.customer_id,
80
+ },
81
+ });
74
82
  });
75
83
  return new workflows_sdk_1.WorkflowResponse(void 0, {
76
84
  hooks: [validate],
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-cart-customer.js","sourceRoot":"","sources":["../../../src/cart/workflows/transfer-cart-customer.ts"],"names":[],"mappings":";;;AAAA,qEAO0C;AAC1C,yCAAgD;AAChD,oCAA0C;AAC1C,6DAA+D;AAgBlD,QAAA,8BAA8B,GAAG,wBAAwB,CAAA;AACtE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACU,QAAA,4BAA4B,GAAG,IAAA,8BAAc,EACxD,sCAA8B,EAC9B,CAAC,KAAsD,EAAE,EAAE;IACzD,MAAM,SAAS,GAAG,IAAA,0BAAiB,EAAC;QAClC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE;QACzB,MAAM,EAAE;YACN,IAAI;YACJ,OAAO;YACP,aAAa;YACb,sBAAsB;YACtB,oBAAoB;YACpB,UAAU;YACV,oBAAoB;SACrB;QACD,OAAO,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE;KACtC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAA;IAE/B,MAAM,IAAI,GAAG,IAAA,yBAAS,EAAC,EAAE,SAAS,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IA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EAAC,SAAS,CAAC,CAAA;QAE1B,6CAAwB,CAAC,SAAS,CAAC;YACjC,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE;SAClD,CAAC,CAAA;IACJ,CAAC,CACF,CAAA;IAED,OAAO,IAAI,gCAAgB,CAAC,KAAK,CAAC,EAAE;QAClC,KAAK,EAAE,CAAC,QAAQ,CAAC;KAClB,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"transfer-cart-customer.js","sourceRoot":"","sources":["../../../src/cart/workflows/transfer-cart-customer.ts"],"names":[],"mappings":";;;AAAA,qEAO0C;AAC1C,yCAA+D;AAC/D,oCAA0C;AAC1C,6DAA+D;AAC/D,qDAA8D;AAgBjD,QAAA,8BAA8B,GAAG,wBAAwB,CAAA;AACtE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACU,QAAA,4BAA4B,GAAG,IAAA,8BAAc,EACxD,sCAA8B,EAC9B,CAAC,KAAsD,EAAE,EAAE;IACzD,MAAM,SAAS,GAAG,IAAA,0BAAiB,EAAC;QAClC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE;QACzB,MAAM,EAAE;YACN,IAAI;YACJ,OAAO;YACP,aAAa;YACb,sBAAsB;YACtB,oBAAoB;YACpB,UAAU;YACV,oBAAoB;SACrB;QACD,OAAO,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE;KACtC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAA;IAE/B,MAAM,IAAI,GAAG,IAAA,yBAAS,EAAC,EAAE,SAAS,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IAE3E,MAAM,QAAQ,GAAG,IAAA,0BAAU,EAAC,UAAU,EAAE;QACtC,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C,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE;SAClD,CAAC,CAAA;QAEF,IAAA,sBAAa,EAAC;YACZ,SAAS,EAAE,0BAAkB,CAAC,oBAAoB;YAClD,IAAI,EAAE;gBACJ,EAAE,EAAE,KAAK,CAAC,EAAE;gBACZ,WAAW,EAAE,QAAQ,CAAC,WAAW;aAClC;SACF,CAAC,CAAA;IACJ,CAAC,CACF,CAAA;IAED,OAAO,IAAI,gCAAgB,CAAC,KAAK,CAAC,EAAE;QAClC,KAAK,EAAE,CAAC,QAAQ,CAAC;KAClB,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
@@ -5,5 +5,6 @@ export declare const refundCapturedPaymentsWorkflowId = "refund-captured-payment
5
5
  export declare const refundCapturedPaymentsWorkflow: import("@medusajs/framework/workflows-sdk").ReturnWorkflow<{
6
6
  order_id: string;
7
7
  created_by?: string;
8
+ note?: string;
8
9
  }, unknown, any[]>;
9
10
  //# sourceMappingURL=refund-captured-payments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"refund-captured-payments.d.ts","sourceRoot":"","sources":["../../../../src/order/workflows/payments/refund-captured-payments.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gCAAgC,sCACR,CAAA;AACrC;;GAEG;AACH,eAAO,MAAM,8BAA8B;cAI3B,MAAM;iBACH,MAAM;kBA4ExB,CAAA"}
1
+ {"version":3,"file":"refund-captured-payments.d.ts","sourceRoot":"","sources":["../../../../src/order/workflows/payments/refund-captured-payments.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gCAAgC,sCACR,CAAA;AACrC;;GAEG;AACH,eAAO,MAAM,8BAA8B;cAI3B,MAAM;iBACH,MAAM;WACZ,MAAM;kBA6ElB,CAAA"}
@@ -4,7 +4,7 @@ exports.refundCapturedPaymentsWorkflow = exports.refundCapturedPaymentsWorkflowI
4
4
  const utils_1 = require("@medusajs/framework/utils");
5
5
  const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
6
6
  const common_1 = require("../../../common");
7
- const payment_1 = require("../../../payment");
7
+ const refund_payments_1 = require("../../../payment/workflows/refund-payments");
8
8
  exports.refundCapturedPaymentsWorkflowId = "refund-captured-payments-workflow";
9
9
  /**
10
10
  * This workflow refunds a payment.
@@ -39,6 +39,7 @@ exports.refundCapturedPaymentsWorkflow = (0, workflows_sdk_1.createWorkflow)(exp
39
39
  payment_id: payment.id,
40
40
  created_by: input.created_by,
41
41
  amount: amountToRefund,
42
+ note: input.note,
42
43
  };
43
44
  })
44
45
  .filter((payment) => utils_1.MathBN.gt(payment.amount, 0));
@@ -47,7 +48,7 @@ exports.refundCapturedPaymentsWorkflow = (0, workflows_sdk_1.createWorkflow)(exp
47
48
  (0, workflows_sdk_1.when)({ totalCaptured }, ({ totalCaptured }) => {
48
49
  return !!utils_1.MathBN.gt(totalCaptured, 0);
49
50
  }).then(() => {
50
- payment_1.refundPaymentsWorkflow.runAsStep({ input: refundPaymentsData });
51
+ refund_payments_1.refundPaymentsWorkflow.runAsStep({ input: refundPaymentsData });
51
52
  });
52
53
  });
53
54
  //# sourceMappingURL=refund-captured-payments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"refund-captured-payments.js","sourceRoot":"","sources":["../../../../src/order/workflows/payments/refund-captured-payments.ts"],"names":[],"mappings":";;;AACA,qDAA+D;AAC/D,qEAK0C;AAC1C,4CAAmD;AACnD,8CAAyD;AAE5C,QAAA,gCAAgC,GAC3C,mCAAmC,CAAA;AACrC;;GAEG;AACU,QAAA,8BAA8B,GAAG,IAAA,8BAAc,EAC1D,wCAAgC,EAChC,CACE,KAGE,EACF,EAAE;IACF,MAAM,UAAU,GAAG,IAAA,0BAAiB,EAAC;QACnC,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,IAAI;YACJ,QAAQ;YACR,SAAS;YACT,iCAAiC;YACjC,qCAAqC;YACrC,yCAAyC;YACzC,6CAA6C;YAC7C,0CAA0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AAM,CAAC,EAC/C,cAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAClB,CAAA;YAED,MAAM,cAAc,GAAG,cAAM,CAAC,GAAG,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;YAEjE,OAAO;gBACL,UAAU,EAAE,OAAO,CAAC,EAAE;gBACtB,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,MAAM,EAAE,cAAc;aACvB,CAAA;QACH,CAAC,CAAC;aACD,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,cAAM,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAA;IACtD,CAAC,CACF,CAAA;IAED,MAAM,aAAa,GAAG,IAAA,yBAAS,EAC7B,EAAE,kBAAkB,EAAE,EACtB,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE,CACzB,kBAAkB,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,CAAC,cAAM,CAAC,GAAG,CAAC,GAAG,EAAE,aAAa,CAAC,MAAM,CAAC,EAC7D,cAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAClB,CACJ,CAAA;IAED,IAAA,oBAAI,EAAC,EAAE,aAAa,EAAE,EAAE,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE;QAC5C,OAAO,CAAC,CAAC,cAAM,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC,CAAC,CAAA;IACtC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;QACX,gCAAsB,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAA;IACjE,CAAC,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"refund-captured-payments.js","sourceRoot":"","sources":["../../../../src/order/workflows/payments/refund-captured-payments.ts"],"names":[],"mappings":";;;AACA,qDAA+D;AAC/D,qEAK0C;AAC1C,4CAAmD;AACnD,gFAAmF;AAEtE,QA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E,CAAC,CAAC,CAAA;IACtC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;QACX,wCAAsB,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAA;IACjE,CAAC,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
@@ -15,6 +15,10 @@ export type RefundPaymentsStepInput = {
15
15
  * The ID of the user that refunded the payment.
16
16
  */
17
17
  created_by?: string;
18
+ /**
19
+ * The note to attach to the refund.
20
+ */
21
+ note?: string;
18
22
  }[];
19
23
  export declare const refundPaymentsStepId = "refund-payments-step";
20
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"refund-payments.d.ts","sourceRoot":"","sources":["../../../src/payment/steps/refund-payments.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAGd,UAAU,EACX,MAAM,2BAA2B,CAAA;AASlC;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,EAAE,CAAA;AAEH,eAAO,MAAM,oBAAoB,yBAAyB,CAAA;AAC1D;;GAEG;AACH,eAAO,MAAM,kBAAkB,iGA0B9B,CAAA"}
1
+ {"version":3,"file":"refund-payments.d.ts","sourceRoot":"","sources":["../../../src/payment/steps/refund-payments.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAGd,UAAU,EACX,MAAM,2BAA2B,CAAA;AASlC;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,EAAE,CAAA;AAEH,eAAO,MAAM,oBAAoB,yBAAyB,CAAA;AAC1D;;GAEG;AACH,eAAO,MAAM,kBAAkB,iGA0B9B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"refund-payments.js","sourceRoot":"","sources":["../../../src/payment/steps/refund-payments.ts"],"names":[],"mappings":";;;AAMA,qDAKkC;AAClC,qEAA4E;AAoB/D,QAAA,oBAAoB,GAAG,sBAAsB,CAAA;AAC1D;;GAEG;AACU,QAAA,kBAAkB,GAAG,IAAA,0BAAU,EAC1C,4BAAoB,EACpB,KAAK,EAAE,KAA8B,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACtD,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAS,iCAAyB,CAAC,MAAM,CAAC,CAAA;IAC1E,MAAM,aAAa,GAAG,SAAS,CAAC,OAAO,CACrC,eAAO,CAAC,OAAO,CAChB,CAAA;IAED,MAAM,QAAQ,GAAiC,EAAE,CAAA;IAEjD,KAAK,MAAM,WAAW,IAAI,KAAK,EAAE,CAAC;QAChC,QAAQ,CAAC,IAAI,CACX,aAAa,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACnD,MAAM,CAAC,KAAK,CACV,+CAA+C,WAAW,CAAC,UAAU,MAAM,CAAC,EAAE,CAC/E,CAAA;QACH,CAAC,CAAC,CACH,CAAA;IACH,CAAC;IAED,MAAM,iBAAiB,GAAG,CAAC,MAAM,IAAA,kBAAU,EAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CACxE,IAAA,gBAAQ,EAAC,OAAO,CAAC,CAClB,CAAA;IAED,OAAO,IAAI,4BAAY,CAAC,iBAAiB,CAAC,CAAA;AAC5C,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"refund-payments.js","sourceRoot":"","sources":["../../../src/payment/steps/refund-payments.ts"],"names":[],"mappings":";;;AAMA,qDAKkC;AAClC,qEAA4E;AAwB/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{"version":3,"file":"process-payment.d.ts","sourceRoot":"","sources":["../../../src/payment/workflows/process-payment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAQrD;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;CAAG;AAE3E,eAAO,MAAM,wBAAwB,6BAA6B,CAAA;AAClE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,sBAAsB,+FAwGlC,CAAA"}
@@ -59,11 +59,36 @@ exports.processPaymentWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.pro
59
59
  (0, workflows_sdk_1.when)({ input, paymentData }, ({ input, paymentData }) => {
60
60
  return (input.action === utils_1.PaymentActions.SUCCESSFUL && !!paymentData.data.length);
61
61
  }).then(() => {
62
- capture_payment_1.capturePaymentWorkflow.runAsStep({
62
+ capture_payment_1.capturePaymentWorkflow
63
+ .runAsStep({
63
64
  input: {
64
65
  payment_id: paymentData.data[0].id,
65
66
  amount: input.data?.amount,
66
67
  },
68
+ })
69
+ .config({
70
+ name: "capture-payment",
71
+ });
72
+ });
73
+ (0, workflows_sdk_1.when)({ input, paymentData }, ({ input, paymentData }) => {
74
+ // payment is captured with the provider but we dont't have any payment data which means we didn't call authorize yet - autocapture flow
75
+ return (input.action === utils_1.PaymentActions.SUCCESSFUL && !paymentData.data.length);
76
+ }).then(() => {
77
+ const payment = (0, steps_1.authorizePaymentSessionStep)({
78
+ id: input.data.session_id,
79
+ context: {},
80
+ }).config({
81
+ name: "authorize-payment-session-autocapture",
82
+ });
83
+ capture_payment_1.capturePaymentWorkflow
84
+ .runAsStep({
85
+ input: {
86
+ payment_id: payment.id,
87
+ amount: input.data?.amount,
88
+ },
89
+ })
90
+ .config({
91
+ name: "capture-payment-autocapture",
67
92
  });
68
93
  });
69
94
  (0, workflows_sdk_1.when)({ input, cartPaymentCollection }, ({ input, cartPaymentCollection }) => {
@@ -76,6 +101,8 @@ exports.processPaymentWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.pro
76
101
  (0, steps_1.authorizePaymentSessionStep)({
77
102
  id: input.data.session_id,
78
103
  context: {},
104
+ }).config({
105
+ name: "authorize-payment-session",
79
106
  });
80
107
  });
81
108
  (0, workflows_sdk_1.when)({ cartPaymentCollection }, ({ cartPaymentCollection }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"process-payment.js","sourceRoot":"","sources":["../../../src/payment/workflows/process-payment.ts"],"names":[],"mappings":";;;AACA,2CAAgD;AAChD,2DAA8D;AAC9D,sEAAyE;AACzE,yCAAgD;AAChD,oCAAsD;AACtD,uDAA0D;AAO7C,QAAA,wBAAwB,GAAG,0BAA0B,CAAA;AAClE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACU,QAAA,sBAAsB,GAAG,IAAA,8BAAc,EAClD,gCAAwB,EACxB,CAAC,KAAkC,EAAE,EAAE;IACrC,MAAM,WAAW,GAAG,IAAA,0BAAiB,EAAC;QACpC,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,CAAC,IAAI,CAAC;QACd,OAAO,EAAE,EAAE,kBAAkB,EAAE,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE;KACxD,CAAC,CAAC,MAAM,CAAC;QACR,IAAI,EAAE,eAAe;KACtB,CAAC,CAAA;IAEF,MAAM,oBAAoB,GAAG,IAAA,0BAAiB,EAAC;QAC7C,MAAM,EAAE,iBAAiB;QACzB,MAAM,EAAE,CAAC,uBAAuB,CAAC;QACjC,OAAO,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE;KACxC,CAAC,CAAC,MAAM,CAAC;QACR,IAAI,EAAE,uBAAuB;KAC9B,CAAC,CAAA;IAEF,MAAM,qBAAqB,GAAG,IAAA,0BAAiB,EAAC;QAC9C,MAAM,EAAE,yBAAyB;QACjC,MAAM,EAAE,CAAC,SAAS,CAAC;QACnB,OAAO,EAAE;YACP,qBAAqB,EACnB,oBAAoB,CAAC,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C,IAAI,CAAC,MAAM,CAAA;IAC5C,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;QACX,oCAAoB;aACjB,SAAS,CAAC;YACT,KAAK,EAAE,EAAE,EAAE,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE;SACrD,CAAC;aACD,MAAM,CAAC;YACN,0BAA0B,EAAE,IAAI,EAAE,4DAA4D;SAC/F,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"process-payment.js","sourceRoot":"","sources":["../../../src/payment/workflows/process-payment.ts"],"names":[],"mappings":";;;AACA,2CAAgD;AAChD,2DAA8D;AAC9D,sEAAyE;AACzE,yCAAgD;AAChD,oCAAsD;AACtD,uDAA0D;AAO7C,QAAA,wBAAwB,GAAG,0BAA0B,CAAA;AAClE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACU,QAAA,sBAAsB,GAAG,IAAA,8BAAc,EAClD,gCAAwB,EACxB,CAAC,KAAkC,EAAE,EAAE;IACrC,MAAM,WAAW,GAAG,IAAA,0BAAiB,EAAC;QACpC,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,CAAC,IAAI,CAAC;QACd,OAAO,EAAE,EAAE,kBAAkB,EAAE,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE;KACxD,CAAC,CAAC,MAAM,CAAC;QACR,IAAI,EAAE,eAAe;KACtB,CAAC,CAAA;IAEF,MAAM,oBAAoB,GAAG,IAAA,0BAAiB,EAAC;QAC7C,MAAM,EAAE,iBAAiB;QACzB,MAAM,EAAE,CAAC,uBAAuB,CAAC;QACjC,OAAO,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE;KACxC,CAAC,CAAC,MAAM,CAAC;QACR,IAAI,EAAE,uBAAuB;KAC9B,CAAC,CAAA;IAEF,MAAM,qBAAqB,GAAG,IAAA,0BAAiB,EAAC;QAC9C,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AAA;AACJ,CAAC,CACF,CAAA"}
@@ -55,6 +55,10 @@ export type RefundPaymentsWorkflowInput = {
55
55
  * The ID of the user that's refunding the payment.
56
56
  */
57
57
  created_by?: string;
58
+ /**
59
+ * The note to attach to the refund.
60
+ */
61
+ note?: string;
58
62
  }[];
59
63
  export declare const refundPaymentsWorkflowId = "refund-payments-workflow";
60
64
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"refund-payments.d.ts","sourceRoot":"","sources":["../../../src/payment/workflows/refund-payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAatE;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,QAAQ,EAAE,UAAU,EAAE,CAAA;IACtB;;OAEG;IACH,KAAK,EAAE,2BAA2B,CAAA;CACnC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0BAA0B,oGAgCtC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,EAAE,CAAA;AAEH,eAAO,MAAM,wBAAwB,6BAA6B,CAAA;AAClE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,sBAAsB,2GAiElC,CAAA"}
1
+ {"version":3,"file":"refund-payments.d.ts","sourceRoot":"","sources":["../../../src/payment/workflows/refund-payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAatE;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,QAAQ,EAAE,UAAU,EAAE,CAAA;IACtB;;OAEG;IACH,KAAK,EAAE,2BAA2B,CAAA;CACnC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0BAA0B,oGA6BtC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,EAAE,CAAA;AAEH,eAAO,MAAM,wBAAwB,6BAA6B,CAAA;AAClE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,sBAAsB,2GAuElC,CAAA"}
@@ -4,7 +4,7 @@ exports.refundPaymentsWorkflow = exports.refundPaymentsWorkflowId = exports.vali
4
4
  const utils_1 = require("@medusajs/framework/utils");
5
5
  const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
6
6
  const common_1 = require("../../common");
7
- const order_1 = require("../../order");
7
+ const add_order_transaction_1 = require("../../order/steps/add-order-transaction");
8
8
  const refund_payments_1 = require("../steps/refund-payments");
9
9
  /**
10
10
  * This step validates that the refund is valid for the payment.
@@ -32,7 +32,7 @@ const refund_payments_1 = require("../steps/refund-payments");
32
32
  * ]
33
33
  * })
34
34
  */
35
- exports.validatePaymentsRefundStep = (0, workflows_sdk_1.createStep)("validate-payments-refund-step", async function ({ payments, input, }) {
35
+ exports.validatePaymentsRefundStep = (0, workflows_sdk_1.createStep)("validate-payments-refund-step", async function ({ payments, input }) {
36
36
  const paymentIdAmountMap = new Map(input.map(({ payment_id, amount }) => [payment_id, amount]));
37
37
  for (const payment of payments) {
38
38
  const capturedAmount = (payment.captures || []).reduce((acc, capture) => utils_1.MathBN.sum(acc, capture.amount), utils_1.MathBN.convert(0));
@@ -91,9 +91,13 @@ exports.refundPaymentsWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.ref
91
91
  for (const payment of payments) {
92
92
  paymentsMap[payment.id] = payment;
93
93
  }
94
- return input.map((paymentInput) => {
94
+ return input
95
+ .map((paymentInput) => {
95
96
  const payment = paymentsMap[paymentInput.payment_id];
96
- const order = payment.payment_collection.order;
97
+ const order = payment.payment_collection?.order;
98
+ if (!order) {
99
+ return;
100
+ }
97
101
  return {
98
102
  order_id: order.id,
99
103
  amount: utils_1.MathBN.mult(paymentInput.amount, -1),
@@ -101,9 +105,10 @@ exports.refundPaymentsWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.ref
101
105
  reference_id: payment.id,
102
106
  reference: "refund",
103
107
  };
104
- });
108
+ })
109
+ .filter(utils_1.isDefined);
105
110
  });
106
- (0, order_1.addOrderTransactionStep)(orderTransactionData);
111
+ (0, add_order_transaction_1.addOrderTransactionStep)(orderTransactionData);
107
112
  return new workflows_sdk_1.WorkflowResponse(refundedPayments);
108
113
  });
109
114
  //# sourceMappingURL=refund-payments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"refund-payments.js","sourceRoot":"","sources":["../../../src/payment/workflows/refund-payments.ts"],"names":[],"mappings":";;;AACA,qDAA+D;AAC/D,qEAM0C;AAC1C,yCAAgD;AAChD,uCAAqD;AACrD,8DAA6D;AAgB7D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACU,QAAA,0BAA0B,GAAG,IAAA,0BAAU,EAClD,+BAA+B,EAC/B,KAAK,WAAW,EACd,QAAQ,EACR,KAAK,GAC2B;IAChC,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAChC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAC5D,CAAA;IAED,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,cAAc,GAAG,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,MAAM,CACpD,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE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,CAC1C,CAAA;IAED,IAAA,kCAA0B,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAA;IAE/C,MAAM,gBAAgB,GAAG,IAAA,oCAAkB,EAAC,KAAK,CAAC,CAAA;IAElD,MAAM,oBAAoB,GAAG,IAAA,yBAAS,EACpC,EAAE,QAAQ,EAAE,KAAK,EAAE,EACnB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE;QACtB,MAAM,WAAW,GAKb,EAAE,CAAA;QAEN,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,CAAA;QACnC,CAAC;QAED,OAAO,KAAK;aACT,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE;YACpB,MAAM,OAAO,GAAG,WAAW,CAAC,YAAY,CAAC,UAAU,CAAE,CAAA;YACrD,MAAM,KAAK,GAAG,OAAO,CAAC,kBAAkB,EAAE,KAAK,CAAA;YAE/C,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAM;YACR,CAAC;YAED,OAAO;gBACL,QAAQ,EAAE,KAAK,CAAC,EAAE;gBAClB,MAAM,EAAE,cAAM,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;gBAC5C,aAAa,EAAE,OAAO,CAAC,aAAa;gBACpC,YAAY,EAAE,OAAO,CAAC,EAAE;gBACxB,SAAS,EAAE,QAAQ;aACpB,CAAA;QACH,CAAC,CAAC;aACD,MAAM,CAAC,iBAAS,CAAC,CAAA;IACtB,CAAC,CACF,CAAA;IAED,IAAA,+CAAuB,EAAC,oBAAoB,CAAC,CAAA;IAE7C,OAAO,IAAI,gCAAgB,CAAC,gBAAgB,CAAC,CAAA;AAC/C,CAAC,CACF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-payment-session.d.ts","sourceRoot":"","sources":["../../../src/payment-collection/workflows/create-payment-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAClB,MAAM,2BAA2B,CAAA;AAiBlC;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE9B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;AAED,eAAO,MAAM,+BAA+B,4BAA4B,CAAA;AACxE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,6BAA6B,uHAwIzC,CAAA"}
1
+ {"version":3,"file":"create-payment-session.d.ts","sourceRoot":"","sources":["../../../src/payment-collection/workflows/create-payment-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAClB,MAAM,2BAA2B,CAAA;AAiBlC;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE9B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;AAED,eAAO,MAAM,+BAA+B,4BAA4B,CAAA;AACxE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,6BAA6B,uHAyIzC,CAAA"}
@@ -67,6 +67,7 @@ exports.createPaymentSessionsWorkflow = (0, workflows_sdk_1.createWorkflow)(expo
67
67
  return {
68
68
  provider_id: data.input.provider_id,
69
69
  context: {
70
+ // The module is idempotent, so if there already is a linked account holder, the module will simply return it back.
70
71
  account_holder: data.existingAccountHolder,
71
72
  customer: data.paymentCustomer,
72
73
  },
@@ -1 +1 @@
1
- {"version":3,"file":"create-payment-session.js","sourceRoot":"","sources":["../../../src/payment-collection/workflows/create-payment-session.ts"],"names":[],"mappings":";;;AAKA,qDAA8D;AAC9D,qEAO0C;AAC1C,yCAAuE;AACvE,oCAGiB;AACjB,uEAAyE;AAgC5D,QAAA,+BAA+B,GAAG,yBAAyB,CAAA;AACxE;;;;;;;;;;;;;;;;;;;GAmBG;AACU,QAAA,6BAA6B,GAAG,IAAA,8BAAc,EACzD,uCAA+B,EAC/B,CACE,KAAuD,EAClB,EAAE;IACvC,MAAM,iBAAiB,GAAG,IAAA,2BAAkB,EAAC;QAC3C,WAAW,EAAE,oBAAoB;QACjC,MAAM,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,oBAAoB,CAAC;QAC/D,SAAS,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,qBAAqB,EAAE;QAC9C,IAAI,EAAE,KAAK;KACZ,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC,CAAA;IAE7C,MAAM,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,IAAA,oBAAI,EAC7C,oBAAoB,EACpB,EAAE,KAAK,EAAE,EACT,CAAC,IAAI,EAAE,EAAE;QACP,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAA;IACjC,CAAC,CACF,CAAC,IAAI,CAAC,GAAG,EAAE;QACV,MAAM,QAAQ,GACZ,IAAA,2BAAkB,EAAC;YACjB,WAAW,EAAE,UAAU;YACvB,MAAM,EAAE;gBACN,IAAI;gBACJ,OAAO;gBACP,cAAc;gBACd,YAAY;gBACZ,WAAW;gBACX,OAAO;gBACP,aAAa;gBACb,mBAAmB;gBACnB,UAAU;aACX;YACD,SAAS,EAAE,EAAE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MAAM,yBAAyB,GAAG,IAAA,yBAAS,EACzC,EAAE,iBAAiB,EAAE,EACrB,CAAC,IAAI,EAAE,EAAE;QACP,OAAO;YACL,GAAG,EACD,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE;SACrE,CAAA;IACH,CAAC,CACF,CAAA;IAED,6EAA6E;IAC7E,6EAA6E;IAC7E,8EAA8E;IAC9E,+BAA+B;IAC/B,MAAM,CAAC,OAAO,CAAC,GAAG,IAAA,2BAAW,EAC3B,IAAA,gCAAwB,EAAC,mBAAmB,CAAC,EAC7C,uDAA6B,CAAC,SAAS,CAAC;QACtC,KAAK,EAAE,yBAAyB;KACjC,CAAC,CACH,CAAA;IAED,OAAO,IAAI,gCAAgB,CAAC,OAAO,CAAC,CAAA;AACtC,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"create-payment-session.js","sourceRoot":"","sources":["../../../src/payment-collection/workflows/create-payment-session.ts"],"names":[],"mappings":";;;AAKA,qDAA8D;AAC9D,qEAO0C;AAC1C,yCAAuE;AACvE,oCAGiB;AACjB,uEAAyE;AAgC5D,QAAA,+BAA+B,GAAG,yBAAyB,CAAA;AACxE;;;;;;;;;;;;;;;;;;;GAmBG;AACU,QAAA,6BAA6B,GAAG,IAAA,8BAAc,EACzD,uCAA+B,EAC/B,CACE,KAAuD,EAClB,EAAE;IACvC,MAAM,iBAAiB,GAAG,IAAA,2BAAkB,EAAC;QAC3C,WAAW,EAAE,oBAAoB;QACjC,MAAM,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,oBAAoB,CAAC;QAC/D,SAAS,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,qBAAqB,EAAE;QAC9C,IAAI,EAAE,KAAK;KACZ,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC,CAAA;IAE7C,MAA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C5D,CAAC,IAAI,EAAE,EAAE;QACP,OAAO;YACL,qBAAqB,EAAE,IAAI,CAAC,KAAK,CAAC,qBAAqB;YACvD,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW;YACnC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;YACrB,OAAO,EAAE;gBACP,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO;gBACrB,QAAQ,EAAE,IAAI,CAAC,eAAe;gBAC9B,cAAc,EAAE,IAAI,CAAC,aAAa;aACnC;YACD,MAAM,EAAE,IAAI,CAAC,iBAAiB,CAAC,MAAM;YACrC,aAAa,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa;SACpD,CAAA;IACH,CAAC,CACF,CAAA;IAED,MAAM,yBAAyB,GAAG,IAAA,yBAAS,EACzC,EAAE,iBAAiB,EAAE,EACrB,CAAC,IAAI,EAAE,EAAE;QACP,OAAO;YACL,GAAG,EACD,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE;SACrE,CAAA;IACH,CAAC,CACF,CAAA;IAED,6EAA6E;IAC7E,6EAA6E;IAC7E,8EAA8E;IAC9E,+BAA+B;IAC/B,MAAM,CAAC,OAAO,CAAC,GAAG,IAAA,2BAAW,EAC3B,IAAA,gCAAwB,EAAC,mBAAmB,CAAC,EAC7C,uDAA6B,CAAC,SAAS,CAAC;QACtC,KAAK,EAAE,yBAAyB;KACjC,CAAC,CACH,CAAA;IAED,OAAO,IAAI,gCAAgB,CAAC,OAAO,CAAC,CAAA;AACtC,CAAC,CACF,CAAA"}
@@ -1,6 +1,6 @@
1
1
  export * from "./create-payment-session";
2
2
  export * from "./create-refund-reasons";
3
3
  export * from "./delete-payment-sessions";
4
- export * from "./update-refund-reasons";
5
4
  export * from "./delete-refund-reasons";
5
+ export * from "./update-refund-reasons";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -17,6 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-payment-session"), exports);
18
18
  __exportStar(require("./create-refund-reasons"), exports);
19
19
  __exportStar(require("./delete-payment-sessions"), exports);
20
- __exportStar(require("./update-refund-reasons"), exports);
21
20
  __exportStar(require("./delete-refund-reasons"), exports);
21
+ __exportStar(require("./update-refund-reasons"), exports);
22
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/api-key/index.ts","../src/api-key/steps/create-api-keys.ts","../src/api-key/steps/delete-api-keys.ts","../src/api-key/steps/index.ts","../src/api-key/steps/link-sales-channels-to-publishable-key.ts","../src/api-key/steps/revoke-api-keys.ts","../src/api-key/steps/update-api-keys.ts","../src/api-key/steps/validate-sales-channel-exists.ts","../src/api-key/workflows/create-api-keys.ts","../src/api-key/workflows/delete-api-keys.ts","../src/api-key/workflows/index.ts","../src/api-key/workflows/link-sales-channels-to-publishable-key.ts","../src/api-key/workflows/revoke-api-keys.ts","../src/api-key/workflows/update-api-keys.ts","../src/auth/index.ts","../src/auth/steps/index.ts","../src/auth/steps/set-auth-app-metadata.ts","../src/auth/workflows/generate-reset-password-token.ts","../src/auth/workflows/index.ts","../src/cart/index.ts","../src/cart/steps/add-shipping-method-to-cart.ts","../src/cart/steps/compensate-payment-if-needed.ts","../src/cart/steps/confirm-inventory.ts","../src/cart/steps/create-carts.ts","../src/cart/steps/create-line-item-adjustments.ts","../src/cart/steps/create-line-items.ts","../src/cart/steps/create-payment-collection.ts","../src/cart/steps/create-shipping-method-adjustments.ts","../src/cart/steps/find-one-or-any-region.ts","../src/cart/steps/find-or-create-customer.ts","../src/cart/steps/find-sales-channel.ts","../src/cart/steps/get-actions-to-compute-from-promotions.ts","../src/cart/steps/get-line-item-actions.ts","../src/cart/steps/get-promotion-codes-to-apply.ts","../src/cart/steps/get-variant-price-sets.ts","../src/cart/steps/get-variants.ts","../src/cart/steps/index.ts","../src/cart/steps/prepare-adjustments-from-promotion-actions.ts","../src/cart/steps/remove-line-item-adjustments.ts","../src/cart/steps/remove-shipping-method-adjustments.ts","../src/cart/steps/remove-shipping-method-from-cart.ts","../src/cart/steps/reserve-inventory.ts","../src/cart/steps/retrieve-cart.ts","../src/cart/steps/set-tax-lines-for-items.ts","../src/cart/steps/update-cart-promotions.ts","../src/cart/steps/update-carts.ts","../src/cart/steps/update-line-items.ts","../src/cart/steps/update-shipping-methods.ts","../src/cart/steps/upsert-tax-lines-for-items.ts","../src/cart/steps/validate-cart-payments.ts","../src/cart/steps/validate-cart-shipping-options.ts","../src/cart/steps/validate-cart.ts","../src/cart/steps/validate-line-item-prices.ts","../src/cart/steps/validate-sales-channel.ts","../src/cart/steps/validate-shipping-methods-data.ts","../src/cart/steps/validate-shipping-options-price.ts","../src/cart/steps/validate-shipping.ts","../src/cart/steps/validate-variant-prices.ts","../src/cart/utils/fields.ts","../src/cart/utils/prepare-confirm-inventory-input.ts","../src/cart/utils/prepare-line-item-data.ts","../src/cart/utils/schemas.ts","../src/cart/utils/__tests__/prepare-confirm-inventory-input.spec.ts","../src/cart/workflows/add-shipping-method-to-cart.ts","../src/cart/workflows/add-to-cart.ts","../src/cart/workflows/complete-cart.ts","../src/cart/workflows/confirm-variant-inventory.ts","../src/cart/workflows/create-cart-credit-lines.ts","../src/cart/workflows/create-carts.ts","../src/cart/workflows/create-payment-collection-for-cart.ts","../src/cart/workflows/delete-cart-credit-lines.ts","../src/cart/workflows/index.ts","../src/cart/workflows/list-shipping-options-for-cart-with-pricing.ts","../src/cart/workflows/list-shipping-options-for-cart.ts","../src/cart/workflows/refresh-cart-items.ts","../src/cart/workflows/refresh-cart-shipping-methods.ts","../src/cart/workflows/refresh-payment-collection.ts","../src/cart/workflows/transfer-cart-customer.ts","../src/cart/workflows/update-cart-promotions.ts","../src/cart/workflows/update-cart.ts","../src/cart/workflows/update-line-item-in-cart.ts","../src/cart/workflows/update-tax-lines.ts","../src/cart/workflows/upsert-tax-lines.ts","../src/common/index.ts","../src/common/steps/create-entities.ts","../src/common/steps/create-remote-links.ts","../src/common/steps/delete-entities.ts","../src/common/steps/dismiss-remote-links.ts","../src/common/steps/emit-event.ts","../src/common/steps/release-event.ts","../src/common/steps/remove-remote-links.ts","../src/common/steps/update-remote-links.ts","../src/common/steps/use-query-graph.ts","../src/common/steps/use-remote-query.ts","../src/common/steps/validate-presence-of.ts","../src/common/workflows/batch-links.ts","../src/common/workflows/create-links.ts","../src/common/workflows/dismiss-links.ts","../src/common/workflows/update-links.ts","../src/customer/index.ts","../src/customer/steps/create-addresses.ts","../src/customer/steps/create-customers.ts","../src/customer/steps/delete-addresses.ts","../src/customer/steps/delete-customers.ts","../src/customer/steps/index.ts","../src/customer/steps/maybe-unset-default-billing-addresses.ts","../src/customer/steps/maybe-unset-default-shipping-addresses.ts","../src/customer/steps/update-addresses.ts","../src/customer/steps/update-customers.ts","../src/customer/steps/validate-customer-account-creation.ts","../src/customer/steps/utils/index.ts","../src/customer/steps/utils/unset-address-for-create.ts","../src/customer/steps/utils/unset-address-for-update.ts","../src/customer/workflows/create-addresses.ts","../src/customer/workflows/create-customer-account.ts","../src/customer/workflows/create-customers.ts","../src/customer/workflows/delete-addresses.ts","../src/customer/workflows/delete-customers.ts","../src/customer/workflows/index.ts","../src/customer/workflows/remove-customer-account.ts","../src/customer/workflows/update-addresses.ts","../src/customer/workflows/update-customers.ts","../src/customer-group/index.ts","../src/customer-group/steps/create-customer-groups.ts","../src/customer-group/steps/delete-customer-group-customers.ts","../src/customer-group/steps/delete-customer-groups.ts","../src/customer-group/steps/index.ts","../src/customer-group/steps/link-customer-groups-customer.ts","../src/customer-group/steps/link-customers-customer-group.ts","../src/customer-group/steps/update-customer-groups.ts","../src/customer-group/workflows/create-customer-groups.ts","../src/customer-group/workflows/delete-customer-groups.ts","../src/customer-group/workflows/index.ts","../src/customer-group/workflows/link-customer-groups-customer.ts","../src/customer-group/workflows/link-customers-customer-group.ts","../src/customer-group/workflows/update-customer-groups.ts","../src/defaults/index.ts","../src/defaults/steps/create-default-store.ts","../src/defaults/steps/index.ts","../src/defaults/workflows/create-defaults.ts","../src/defaults/workflows/index.ts","../src/draft-order/index.ts","../src/draft-order/steps/create-draft-order-line-item-adjustments.ts","../src/draft-order/steps/create-draft-order-shipping-method-adjustments.ts","../src/draft-order/steps/get-draft-order-promotion-context.ts","../src/draft-order/steps/index.ts","../src/draft-order/steps/remove-draft-order-line-item-adjustments.ts","../src/draft-order/steps/remove-draft-order-shipping-method-adjustments.ts","../src/draft-order/steps/restore-draft-order-shipping-methods.ts","../src/draft-order/steps/update-draft-order-promotions.ts","../src/draft-order/steps/update-draft-order-shipping-metod.ts","../src/draft-order/steps/validate-draft-order-change.ts","../src/draft-order/steps/validate-draft-order-remove-action-item.ts","../src/draft-order/steps/validate-draft-order-shipping-method-action.ts","../src/draft-order/steps/validate-draft-order-update-action-item.ts","../src/draft-order/steps/validate-draft-order.ts","../src/draft-order/steps/validate-promo-codes-to-add.ts","../src/draft-order/steps/validate-promo-codes-to-remove.ts","../src/draft-order/utils/fields.ts","../src/draft-order/utils/validation.ts","../src/draft-order/workflows/add-draft-order-items.ts","../src/draft-order/workflows/add-draft-order-promotions.ts","../src/draft-order/workflows/add-draft-order-shipping-methods.ts","../src/draft-order/workflows/begin-draft-order-edit.ts","../src/draft-order/workflows/cancel-draft-order-edit.ts","../src/draft-order/workflows/confirm-draft-order-edit.ts","../src/draft-order/workflows/convert-draft-order.ts","../src/draft-order/workflows/index.ts","../src/draft-order/workflows/refresh-draft-order-adjustments.ts","../src/draft-order/workflows/remove-draft-order-action-item.ts","../src/draft-order/workflows/remove-draft-order-action-shipping-method.ts","../src/draft-order/workflows/remove-draft-order-promotions.ts","../src/draft-order/workflows/remove-draft-order-shipping-method.ts","../src/draft-order/workflows/request-draft-order-edit.ts","../src/draft-order/workflows/update-draft-order-action-item.ts","../src/draft-order/workflows/update-draft-order-action-shipping-method.ts","../src/draft-order/workflows/update-draft-order-item.ts","../src/draft-order/workflows/update-draft-order-shipping-method.ts","../src/draft-order/workflows/update-draft-order.ts","../src/file/index.ts","../src/file/steps/delete-files.ts","../src/file/steps/index.ts","../src/file/steps/upload-files.ts","../src/file/workflows/delete-files.ts","../src/file/workflows/index.ts","../src/file/workflows/upload-files.ts","../src/fulfillment/index.ts","../src/fulfillment/steps/add-shipping-options-prices.ts","../src/fulfillment/steps/calculate-shipping-options-prices.ts","../src/fulfillment/steps/cancel-fulfillment.ts","../src/fulfillment/steps/create-fulfillment-set.ts","../src/fulfillment/steps/create-fulfillment.ts","../src/fulfillment/steps/create-return-fulfillment.ts","../src/fulfillment/steps/create-service-zones.ts","../src/fulfillment/steps/create-shipping-option-rules.ts","../src/fulfillment/steps/create-shipping-profiles.ts","../src/fulfillment/steps/delete-fulfillment-sets.ts","../src/fulfillment/steps/delete-service-zones.ts","../src/fulfillment/steps/delete-shipping-option-rules.ts","../src/fulfillment/steps/delete-shipping-options.ts","../src/fulfillment/steps/index.ts","../src/fulfillment/steps/set-shipping-options-price-sets.ts","../src/fulfillment/steps/set-shipping-options-prices.ts","../src/fulfillment/steps/update-fulfillment.ts","../src/fulfillment/steps/update-service-zones.ts","../src/fulfillment/steps/update-shipping-option-rules.ts","../src/fulfillment/steps/update-shipping-profiles.ts","../src/fulfillment/steps/upsert-shipping-options.ts","../src/fulfillment/steps/validate-fulfillment-providers.ts","../src/fulfillment/steps/validate-shipment.ts","../src/fulfillment/steps/validate-shipping-option-prices.ts","../src/fulfillment/workflows/batch-shipping-option-rules.ts","../src/fulfillment/workflows/calculate-shipping-options-prices.ts","../src/fulfillment/workflows/cancel-fulfillment.ts","../src/fulfillment/workflows/create-fulfillment.ts","../src/fulfillment/workflows/create-return-fulfillment.ts","../src/fulfillment/workflows/create-service-zones.ts","../src/fulfillment/workflows/create-shipment.ts","../src/fulfillment/workflows/create-shipping-options.ts","../src/fulfillment/workflows/create-shipping-profiles.ts","../src/fulfillment/workflows/delete-fulfillment-sets.ts","../src/fulfillment/workflows/delete-service-zones.ts","../src/fulfillment/workflows/delete-shipping-options.ts","../src/fulfillment/workflows/index.ts","../src/fulfillment/workflows/mark-fulfillment-as-delivered.ts","../src/fulfillment/workflows/update-fulfillment.ts","../src/fulfillment/workflows/update-service-zones.ts","../src/fulfillment/workflows/update-shipping-options.ts","../src/fulfillment/workflows/update-shipping-profiles.ts","../src/inventory/index.ts","../src/inventory/steps/adjust-inventory-levels.ts","../src/inventory/steps/attach-inventory-items.ts","../src/inventory/steps/create-inventory-items.ts","../src/inventory/steps/create-inventory-levels.ts","../src/inventory/steps/delete-inventory-items.ts","../src/inventory/steps/delete-inventory-levels.ts","../src/inventory/steps/index.ts","../src/inventory/steps/update-inventory-items.ts","../src/inventory/steps/update-inventory-levels.ts","../src/inventory/steps/validate-inventory-items.ts","../src/inventory/steps/validate-inventory-locations.ts","../src/inventory/steps/validate-singular-inventory-items-for-tags.ts","../src/inventory/workflows/batch-inventory-item-levels.ts","../src/inventory/workflows/bulk-create-delete-levels.ts","../src/inventory/workflows/create-inventory-items.ts","../src/inventory/workflows/create-inventory-levels.ts","../src/inventory/workflows/delete-inventory-items.ts","../src/inventory/workflows/delete-inventory-levels.ts","../src/inventory/workflows/index.ts","../src/inventory/workflows/update-inventory-items.ts","../src/inventory/workflows/update-inventory-levels.ts","../src/invite/index.ts","../src/invite/steps/create-invites.ts","../src/invite/steps/delete-invites.ts","../src/invite/steps/index.ts","../src/invite/steps/refresh-invite-tokens.ts","../src/invite/steps/validate-token.ts","../src/invite/workflows/accept-invite.ts","../src/invite/workflows/create-invites.ts","../src/invite/workflows/delete-invites.ts","../src/invite/workflows/index.ts","../src/invite/workflows/refresh-invite-tokens.ts","../src/line-item/index.ts","../src/line-item/steps/delete-line-items.ts","../src/line-item/steps/index.ts","../src/line-item/steps/list-line-items.ts","../src/line-item/steps/update-line-items.ts","../src/line-item/workflows/delete-line-items.ts","../src/line-item/workflows/index.ts","../src/notification/index.ts","../src/notification/steps/index.ts","../src/notification/steps/notify-on-failure.ts","../src/notification/steps/send-notifications.ts","../src/order/index.ts","../src/order/steps/add-order-transaction.ts","../src/order/steps/archive-orders.ts","../src/order/steps/cancel-fulfillment.ts","../src/order/steps/cancel-order-change.ts","../src/order/steps/cancel-orders.ts","../src/order/steps/complete-orders.ts","../src/order/steps/confirm-order-changes.ts","../src/order/steps/create-line-items.ts","../src/order/steps/create-order-change.ts","../src/order/steps/create-order-shipping-methods.ts","../src/order/steps/create-orders.ts","../src/order/steps/decline-order-change.ts","../src/order/steps/delete-line-items.ts","../src/order/steps/delete-order-change-actions.ts","../src/order/steps/delete-order-changes.ts","../src/order/steps/delete-order-shipping-methods.ts","../src/order/steps/index.ts","../src/order/steps/preview-order-change.ts","../src/order/steps/register-delivery.ts","../src/order/steps/register-fulfillment.ts","../src/order/steps/register-order-changes.ts","../src/order/steps/register-shipment.ts","../src/order/steps/set-tax-lines-for-items.ts","../src/order/steps/update-order-change-actions.ts","../src/order/steps/update-order-changes.ts","../src/order/steps/update-orders.ts","../src/order/steps/update-shipping-methods.ts","../src/order/steps/claim/cancel-claim.ts","../src/order/steps/claim/create-claim-items-from-actions.ts","../src/order/steps/claim/create-claims.ts","../src/order/steps/claim/delete-claims.ts","../src/order/steps/claim/update-order-claims.ts","../src/order/steps/exchange/cancel-exchange.ts","../src/order/steps/exchange/create-exchange-items-from-actions.ts","../src/order/steps/exchange/create-exchange.ts","../src/order/steps/exchange/delete-exchanges.ts","../src/order/steps/exchange/update-order-exchanges.ts","../src/order/steps/return/cancel-return.ts","../src/order/steps/return/create-complete-return.ts","../src/order/steps/return/create-return-items-from-actions.ts","../src/order/steps/return/create-returns.ts","../src/order/steps/return/delete-returns.ts","../src/order/steps/return/receive-return.ts","../src/order/steps/return/update-return-items.ts","../src/order/steps/return/update-returns.ts","../src/order/utils/aggregate-status.ts","../src/order/utils/build-reservations-map.ts","../src/order/utils/fields.ts","../src/order/utils/order-validation.ts","../src/order/utils/prepare-shipping-method.ts","../src/order/utils/validate-return-reason.ts","../src/order/utils/__tests__/aggregate-status.spec.ts","../src/order/workflows/add-line-items.ts","../src/order/workflows/archive-orders.ts","../src/order/workflows/cancel-order-change.ts","../src/order/workflows/cancel-order-fulfillment.ts","../src/order/workflows/cancel-order.ts","../src/order/workflows/complete-orders.ts","../src/order/workflows/create-fulfillment.ts","../src/order/workflows/create-or-update-order-payment-collection.ts","../src/order/workflows/create-order-change-actions.ts","../src/order/workflows/create-order-change.ts","../src/order/workflows/create-order-credit-lines.ts","../src/order/workflows/create-order-payment-collection.ts","../src/order/workflows/create-order.ts","../src/order/workflows/create-shipment.ts","../src/order/workflows/decline-order-change.ts","../src/order/workflows/delete-order-change-actions.ts","../src/order/workflows/delete-order-change.ts","../src/order/workflows/delete-order-payment-collection.ts","../src/order/workflows/fetch-shipping-option.ts","../src/order/workflows/get-order-detail.ts","../src/order/workflows/get-orders-list.ts","../src/order/workflows/index.ts","../src/order/workflows/mark-order-fulfillment-as-delivered.ts","../src/order/workflows/mark-payment-collection-as-paid.ts","../src/order/workflows/maybe-refresh-shipping-methods.ts","../src/order/workflows/update-order-change-actions.ts","../src/order/workflows/update-order-changes.ts","../src/order/workflows/update-order.ts","../src/order/workflows/update-tax-lines.ts","../src/order/workflows/claim/begin-order-claim.ts","../src/order/workflows/claim/cancel-begin-order-claim.ts","../src/order/workflows/claim/cancel-claim.ts","../src/order/workflows/claim/claim-add-new-item.ts","../src/order/workflows/claim/claim-item.ts","../src/order/workflows/claim/claim-request-item-return.ts","../src/order/workflows/claim/confirm-claim-request.ts","../src/order/workflows/claim/create-claim-shipping-method.ts","../src/order/workflows/claim/refresh-shipping.ts","../src/order/workflows/claim/remove-claim-add-item-action.ts","../src/order/workflows/claim/remove-claim-item-action.ts","../src/order/workflows/claim/remove-claim-shipping-method.ts","../src/order/workflows/claim/update-claim-add-item.ts","../src/order/workflows/claim/update-claim-item.ts","../src/order/workflows/claim/update-claim-shipping-method.ts","../src/order/workflows/exchange/begin-order-exchange.ts","../src/order/workflows/exchange/cancel-begin-order-exchange.ts","../src/order/workflows/exchange/cancel-exchange.ts","../src/order/workflows/exchange/confirm-exchange-request.ts","../src/order/workflows/exchange/create-exchange-shipping-method.ts","../src/order/workflows/exchange/exchange-add-new-item.ts","../src/order/workflows/exchange/exchange-request-item-return.ts","../src/order/workflows/exchange/refresh-shipping.ts","../src/order/workflows/exchange/remove-exchange-item-action.ts","../src/order/workflows/exchange/remove-exchange-shipping-method.ts","../src/order/workflows/exchange/update-exchange-add-item.ts","../src/order/workflows/exchange/update-exchange-shipping-method.ts","../src/order/workflows/order-edit/begin-order-edit.ts","../src/order/workflows/order-edit/cancel-begin-order-edit.ts","../src/order/workflows/order-edit/confirm-order-edit-request.ts","../src/order/workflows/order-edit/create-order-edit-shipping-method.ts","../src/order/workflows/order-edit/order-edit-add-new-item.ts","../src/order/workflows/order-edit/order-edit-update-item-quantity.ts","../src/order/workflows/order-edit/remove-order-edit-item-action.ts","../src/order/workflows/order-edit/remove-order-edit-shipping-method.ts","../src/order/workflows/order-edit/request-order-edit.ts","../src/order/workflows/order-edit/update-order-edit-add-item.ts","../src/order/workflows/order-edit/update-order-edit-item-quantity.ts","../src/order/workflows/order-edit/update-order-edit-shipping-method.ts","../src/order/workflows/payments/create-order-refund-credit-lines.ts","../src/order/workflows/payments/refund-captured-payments.ts","../src/order/workflows/return/begin-receive-return.ts","../src/order/workflows/return/begin-return.ts","../src/order/workflows/return/cancel-receive-return.ts","../src/order/workflows/return/cancel-request-return.ts","../src/order/workflows/return/cancel-return.ts","../src/order/workflows/return/confirm-receive-return-request.ts","../src/order/workflows/return/confirm-return-request.ts","../src/order/workflows/return/create-complete-return.ts","../src/order/workflows/return/create-return-shipping-method.ts","../src/order/workflows/return/dismiss-item-return-request.ts","../src/order/workflows/return/receive-complete-return.ts","../src/order/workflows/return/receive-item-return-request.ts","../src/order/workflows/return/refresh-shipping.ts","../src/order/workflows/return/remove-item-receive-return-action.ts","../src/order/workflows/return/remove-item-return-action.ts","../src/order/workflows/return/remove-return-shipping-method.ts","../src/order/workflows/return/request-item-return.ts","../src/order/workflows/return/update-receive-item-return-request.ts","../src/order/workflows/return/update-request-item-return.ts","../src/order/workflows/return/update-return-shipping-method.ts","../src/order/workflows/return/update-return.ts","../src/order/workflows/transfer/accept-order-transfer.ts","../src/order/workflows/transfer/cancel-order-transfer.ts","../src/order/workflows/transfer/decline-order-transfer.ts","../src/order/workflows/transfer/request-order-transfer.ts","../src/payment/index.ts","../src/payment/steps/authorize-payment-session.ts","../src/payment/steps/cancel-payment.ts","../src/payment/steps/capture-payment.ts","../src/payment/steps/index.ts","../src/payment/steps/refund-payment.ts","../src/payment/steps/refund-payments.ts","../src/payment/workflows/capture-payment.ts","../src/payment/workflows/index.ts","../src/payment/workflows/process-payment.ts","../src/payment/workflows/refund-payment.ts","../src/payment/workflows/refund-payments.ts","../src/payment-collection/index.ts","../src/payment-collection/steps/cancel-payment.ts","../src/payment-collection/steps/create-payment-account-holder.ts","../src/payment-collection/steps/create-payment-session.ts","../src/payment-collection/steps/create-refund-reasons.ts","../src/payment-collection/steps/delete-payment-sessions.ts","../src/payment-collection/steps/delete-refund-reasons.ts","../src/payment-collection/steps/index.ts","../src/payment-collection/steps/update-payment-collection.ts","../src/payment-collection/steps/update-refund-reasons.ts","../src/payment-collection/steps/validate-deleted-payment-sessions.ts","../src/payment-collection/workflows/cancel-payment-collection.ts","../src/payment-collection/workflows/create-payment-session.ts","../src/payment-collection/workflows/create-refund-reasons.ts","../src/payment-collection/workflows/delete-payment-sessions.ts","../src/payment-collection/workflows/delete-refund-reasons.ts","../src/payment-collection/workflows/index.ts","../src/payment-collection/workflows/update-refund-reasons.ts","../src/price-list/index.ts","../src/price-list/steps/create-price-list-prices.ts","../src/price-list/steps/create-price-lists.ts","../src/price-list/steps/delete-price-lists.ts","../src/price-list/steps/get-existing-price-lists-price-ids.ts","../src/price-list/steps/index.ts","../src/price-list/steps/remove-price-list-prices.ts","../src/price-list/steps/update-price-list-prices.ts","../src/price-list/steps/update-price-lists.ts","../src/price-list/steps/validate-price-lists.ts","../src/price-list/steps/validate-variant-price-links.ts","../src/price-list/workflows/batch-price-list-prices.ts","../src/price-list/workflows/create-price-list-prices.ts","../src/price-list/workflows/create-price-lists.ts","../src/price-list/workflows/delete-price-lists.ts","../src/price-list/workflows/index.ts","../src/price-list/workflows/remove-price-list-prices.ts","../src/price-list/workflows/update-price-list-prices.ts","../src/price-list/workflows/update-price-lists.ts","../src/pricing/index.ts","../src/pricing/steps/create-price-preferences.ts","../src/pricing/steps/create-price-sets.ts","../src/pricing/steps/delete-price-preferences.ts","../src/pricing/steps/index.ts","../src/pricing/steps/update-price-preferences-as-array.ts","../src/pricing/steps/update-price-preferences.ts","../src/pricing/steps/update-price-sets.ts","../src/pricing/workflows/create-price-preferences.ts","../src/pricing/workflows/delete-price-preferences.ts","../src/pricing/workflows/index.ts","../src/pricing/workflows/update-price-preferences.ts","../src/product/index.ts","../src/product/helpers/normalize-for-export.ts","../src/product/helpers/normalize-for-import.ts","../src/product/helpers/normalize-v1-import.ts","../src/product/steps/batch-link-products-collection.ts","../src/product/steps/batch-link-products-in-category.ts","../src/product/steps/create-collections.ts","../src/product/steps/create-product-options.ts","../src/product/steps/create-product-tags.ts","../src/product/steps/create-product-types.ts","../src/product/steps/create-product-variants.ts","../src/product/steps/create-products.ts","../src/product/steps/create-variant-pricing-link.ts","../src/product/steps/delete-collections.ts","../src/product/steps/delete-product-options.ts","../src/product/steps/delete-product-tags.ts","../src/product/steps/delete-product-types.ts","../src/product/steps/delete-product-variants.ts","../src/product/steps/delete-products.ts","../src/product/steps/generate-product-csv.ts","../src/product/steps/get-all-products.ts","../src/product/steps/get-products.ts","../src/product/steps/get-variant-availability.ts","../src/product/steps/get-variant-pricing-link.ts","../src/product/steps/group-products-for-batch.ts","../src/product/steps/index.ts","../src/product/steps/parse-product-csv.ts","../src/product/steps/update-collections.ts","../src/product/steps/update-product-options.ts","../src/product/steps/update-product-tags.ts","../src/product/steps/update-product-types.ts","../src/product/steps/update-product-variants.ts","../src/product/steps/update-products.ts","../src/product/steps/wait-confirmation-product-import.ts","../src/product/utlils/csvtojson.ts","../src/product/utlils/index.ts","../src/product/utlils/jsontocsv.ts","../src/product/workflows/batch-link-products-collection.ts","../src/product/workflows/batch-product-variants.ts","../src/product/workflows/batch-products-in-category.ts","../src/product/workflows/batch-products.ts","../src/product/workflows/create-collections.ts","../src/product/workflows/create-product-options.ts","../src/product/workflows/create-product-tags.ts","../src/product/workflows/create-product-types.ts","../src/product/workflows/create-product-variants.ts","../src/product/workflows/create-products.ts","../src/product/workflows/delete-collections.ts","../src/product/workflows/delete-product-options.ts","../src/product/workflows/delete-product-tags.ts","../src/product/workflows/delete-product-types.ts","../src/product/workflows/delete-product-variants.ts","../src/product/workflows/delete-products.ts","../src/product/workflows/export-products.ts","../src/product/workflows/import-products.ts","../src/product/workflows/index.ts","../src/product/workflows/update-collections.ts","../src/product/workflows/update-product-options.ts","../src/product/workflows/update-product-tags.ts","../src/product/workflows/update-product-types.ts","../src/product/workflows/update-product-variants.ts","../src/product/workflows/update-products.ts","../src/product/workflows/upsert-variant-prices.ts","../src/product-category/index.ts","../src/product-category/steps/create-product-categories.ts","../src/product-category/steps/delete-product-categories.ts","../src/product-category/steps/index.ts","../src/product-category/steps/update-product-categories.ts","../src/product-category/workflows/create-product-categories.ts","../src/product-category/workflows/delete-product-categories.ts","../src/product-category/workflows/index.ts","../src/product-category/workflows/update-product-categories.ts","../src/promotion/index.ts","../src/promotion/steps/add-campaign-promotions.ts","../src/promotion/steps/add-or-remove-campaign-promotions.ts","../src/promotion/steps/add-rules-to-promotions.ts","../src/promotion/steps/create-campaigns.ts","../src/promotion/steps/create-promotions.ts","../src/promotion/steps/delete-campaigns.ts","../src/promotion/steps/delete-promotion-rules-workflow.ts","../src/promotion/steps/delete-promotions.ts","../src/promotion/steps/index.ts","../src/promotion/steps/register-usage.ts","../src/promotion/steps/remove-campaign-promotions.ts","../src/promotion/steps/remove-rules-from-promotions.ts","../src/promotion/steps/update-campaigns.ts","../src/promotion/steps/update-promotion-rules.ts","../src/promotion/steps/update-promotions.ts","../src/promotion/workflows/add-or-remove-campaign-promotions.ts","../src/promotion/workflows/batch-promotion-rules.ts","../src/promotion/workflows/create-campaigns.ts","../src/promotion/workflows/create-promotion-rules.ts","../src/promotion/workflows/create-promotions.ts","../src/promotion/workflows/delete-campaigns.ts","../src/promotion/workflows/delete-promotion-rules.ts","../src/promotion/workflows/delete-promotions.ts","../src/promotion/workflows/index.ts","../src/promotion/workflows/update-campaigns.ts","../src/promotion/workflows/update-promotion-rules.ts","../src/promotion/workflows/update-promotions-status.ts","../src/promotion/workflows/update-promotions.ts","../src/region/index.ts","../src/region/steps/create-regions.ts","../src/region/steps/delete-regions.ts","../src/region/steps/index.ts","../src/region/steps/set-regions-payment-providers.ts","../src/region/steps/update-regions.ts","../src/region/workflows/create-regions.ts","../src/region/workflows/delete-regions.ts","../src/region/workflows/index.ts","../src/region/workflows/update-regions.ts","../src/reservation/index.ts","../src/reservation/steps/create-reservations.ts","../src/reservation/steps/delete-reservations-by-line-items.ts","../src/reservation/steps/delete-reservations.ts","../src/reservation/steps/index.ts","../src/reservation/steps/update-reservations.ts","../src/reservation/workflows/create-reservations.ts","../src/reservation/workflows/delete-reservations-by-line-items.ts","../src/reservation/workflows/delete-reservations.ts","../src/reservation/workflows/index.ts","../src/reservation/workflows/update-reservations.ts","../src/return-reason/index.ts","../src/return-reason/steps/create-return-reasons.ts","../src/return-reason/steps/delete-return-reasons.ts","../src/return-reason/steps/index.ts","../src/return-reason/steps/update-return-reasons.ts","../src/return-reason/workflows/create-return-reasons.ts","../src/return-reason/workflows/delete-return-reasons.ts","../src/return-reason/workflows/index.ts","../src/return-reason/workflows/update-return-reasons.ts","../src/sales-channel/index.ts","../src/sales-channel/steps/associate-locations-with-channels.ts","../src/sales-channel/steps/associate-products-with-channels.ts","../src/sales-channel/steps/can-delete-sales-channels.ts","../src/sales-channel/steps/create-default-sales-channel.ts","../src/sales-channel/steps/create-sales-channels.ts","../src/sales-channel/steps/delete-sales-channels.ts","../src/sales-channel/steps/detach-locations-from-channels.ts","../src/sales-channel/steps/detach-products-from-sales-channels.ts","../src/sales-channel/steps/index.ts","../src/sales-channel/steps/update-sales-channels.ts","../src/sales-channel/workflows/create-sales-channels.ts","../src/sales-channel/workflows/delete-sales-channels.ts","../src/sales-channel/workflows/index.ts","../src/sales-channel/workflows/link-products-to-sales-channel.ts","../src/sales-channel/workflows/update-sales-channels.ts","../src/shipping-options/index.ts","../src/shipping-options/steps/index.ts","../src/shipping-options/steps/list-shipping-options-for-context.ts","../src/shipping-profile/index.ts","../src/shipping-profile/steps/delete-shipping-profile.ts","../src/shipping-profile/steps/index.ts","../src/shipping-profile/workflows/delete-shipping-profile.ts","../src/shipping-profile/workflows/index.ts","../src/stock-location/index.ts","../src/stock-location/steps/associate-locations-with-fulfillment-sets.ts","../src/stock-location/steps/create-stock-locations.ts","../src/stock-location/steps/delete-stock-locations.ts","../src/stock-location/steps/index.ts","../src/stock-location/steps/update-stock-locations.ts","../src/stock-location/steps/upsert-stock-location-addresses.ts","../src/stock-location/workflows/create-location-fulfillment-set.ts","../src/stock-location/workflows/create-stock-locations.ts","../src/stock-location/workflows/delete-stock-locations.ts","../src/stock-location/workflows/index.ts","../src/stock-location/workflows/link-sales-channels-to-stock-location.ts","../src/stock-location/workflows/update-stock-locations.ts","../src/store/index.ts","../src/store/steps/create-stores.ts","../src/store/steps/delete-stores.ts","../src/store/steps/index.ts","../src/store/steps/update-stores.ts","../src/store/workflows/create-stores.ts","../src/store/workflows/delete-stores.ts","../src/store/workflows/index.ts","../src/store/workflows/update-stores.ts","../src/tax/index.ts","../src/tax/steps/create-tax-rate-rules.ts","../src/tax/steps/create-tax-rates.ts","../src/tax/steps/create-tax-regions.ts","../src/tax/steps/delete-tax-rate-rules.ts","../src/tax/steps/delete-tax-rates.ts","../src/tax/steps/delete-tax-regions.ts","../src/tax/steps/get-item-tax-lines.ts","../src/tax/steps/index.ts","../src/tax/steps/list-tax-rate-ids.ts","../src/tax/steps/list-tax-rate-rule-ids.ts","../src/tax/steps/update-tax-rates.ts","../src/tax/steps/update-tax-regions.ts","../src/tax/workflows/create-tax-rate-rules.ts","../src/tax/workflows/create-tax-rates.ts","../src/tax/workflows/create-tax-regions.ts","../src/tax/workflows/delete-tax-rate-rules.ts","../src/tax/workflows/delete-tax-rates.ts","../src/tax/workflows/delete-tax-regions.ts","../src/tax/workflows/index.ts","../src/tax/workflows/set-tax-rate-rules.ts","../src/tax/workflows/update-tax-rates.ts","../src/tax/workflows/update-tax-regions.ts","../src/user/index.ts","../src/user/steps/create-users.ts","../src/user/steps/delete-users.ts","../src/user/steps/index.ts","../src/user/steps/update-users.ts","../src/user/workflows/create-user-account.ts","../src/user/workflows/create-users.ts","../src/user/workflows/delete-users.ts","../src/user/workflows/index.ts","../src/user/workflows/remove-user-account.ts","../src/user/workflows/update-users.ts"],"version":"5.6.2"}
1
+ {"root":["../src/index.ts","../src/api-key/index.ts","../src/api-key/steps/create-api-keys.ts","../src/api-key/steps/delete-api-keys.ts","../src/api-key/steps/index.ts","../src/api-key/steps/link-sales-channels-to-publishable-key.ts","../src/api-key/steps/revoke-api-keys.ts","../src/api-key/steps/update-api-keys.ts","../src/api-key/steps/validate-sales-channel-exists.ts","../src/api-key/workflows/create-api-keys.ts","../src/api-key/workflows/delete-api-keys.ts","../src/api-key/workflows/index.ts","../src/api-key/workflows/link-sales-channels-to-publishable-key.ts","../src/api-key/workflows/revoke-api-keys.ts","../src/api-key/workflows/update-api-keys.ts","../src/auth/index.ts","../src/auth/steps/index.ts","../src/auth/steps/set-auth-app-metadata.ts","../src/auth/workflows/generate-reset-password-token.ts","../src/auth/workflows/index.ts","../src/cart/index.ts","../src/cart/steps/add-shipping-method-to-cart.ts","../src/cart/steps/compensate-payment-if-needed.ts","../src/cart/steps/confirm-inventory.ts","../src/cart/steps/create-carts.ts","../src/cart/steps/create-line-item-adjustments.ts","../src/cart/steps/create-line-items.ts","../src/cart/steps/create-payment-collection.ts","../src/cart/steps/create-shipping-method-adjustments.ts","../src/cart/steps/find-one-or-any-region.ts","../src/cart/steps/find-or-create-customer.ts","../src/cart/steps/find-sales-channel.ts","../src/cart/steps/get-actions-to-compute-from-promotions.ts","../src/cart/steps/get-line-item-actions.ts","../src/cart/steps/get-promotion-codes-to-apply.ts","../src/cart/steps/get-variant-price-sets.ts","../src/cart/steps/get-variants.ts","../src/cart/steps/index.ts","../src/cart/steps/prepare-adjustments-from-promotion-actions.ts","../src/cart/steps/remove-line-item-adjustments.ts","../src/cart/steps/remove-shipping-method-adjustments.ts","../src/cart/steps/remove-shipping-method-from-cart.ts","../src/cart/steps/reserve-inventory.ts","../src/cart/steps/retrieve-cart.ts","../src/cart/steps/set-tax-lines-for-items.ts","../src/cart/steps/update-cart-promotions.ts","../src/cart/steps/update-carts.ts","../src/cart/steps/update-line-items.ts","../src/cart/steps/update-shipping-methods.ts","../src/cart/steps/upsert-tax-lines-for-items.ts","../src/cart/steps/validate-cart-payments.ts","../src/cart/steps/validate-cart-shipping-options.ts","../src/cart/steps/validate-cart.ts","../src/cart/steps/validate-line-item-prices.ts","../src/cart/steps/validate-sales-channel.ts","../src/cart/steps/validate-shipping-methods-data.ts","../src/cart/steps/validate-shipping-options-price.ts","../src/cart/steps/validate-shipping.ts","../src/cart/steps/validate-variant-prices.ts","../src/cart/utils/fields.ts","../src/cart/utils/prepare-confirm-inventory-input.ts","../src/cart/utils/prepare-line-item-data.ts","../src/cart/utils/schemas.ts","../src/cart/utils/__tests__/prepare-confirm-inventory-input.spec.ts","../src/cart/workflows/add-shipping-method-to-cart.ts","../src/cart/workflows/add-to-cart.ts","../src/cart/workflows/complete-cart.ts","../src/cart/workflows/confirm-variant-inventory.ts","../src/cart/workflows/create-cart-credit-lines.ts","../src/cart/workflows/create-carts.ts","../src/cart/workflows/create-payment-collection-for-cart.ts","../src/cart/workflows/delete-cart-credit-lines.ts","../src/cart/workflows/index.ts","../src/cart/workflows/list-shipping-options-for-cart-with-pricing.ts","../src/cart/workflows/list-shipping-options-for-cart.ts","../src/cart/workflows/refresh-cart-items.ts","../src/cart/workflows/refresh-cart-shipping-methods.ts","../src/cart/workflows/refresh-payment-collection.ts","../src/cart/workflows/refund-payment-recreate-payment-session.ts","../src/cart/workflows/transfer-cart-customer.ts","../src/cart/workflows/update-cart-promotions.ts","../src/cart/workflows/update-cart.ts","../src/cart/workflows/update-line-item-in-cart.ts","../src/cart/workflows/update-tax-lines.ts","../src/cart/workflows/upsert-tax-lines.ts","../src/common/index.ts","../src/common/steps/create-entities.ts","../src/common/steps/create-remote-links.ts","../src/common/steps/delete-entities.ts","../src/common/steps/dismiss-remote-links.ts","../src/common/steps/emit-event.ts","../src/common/steps/release-event.ts","../src/common/steps/remove-remote-links.ts","../src/common/steps/update-remote-links.ts","../src/common/steps/use-query-graph.ts","../src/common/steps/use-remote-query.ts","../src/common/steps/validate-presence-of.ts","../src/common/workflows/batch-links.ts","../src/common/workflows/create-links.ts","../src/common/workflows/dismiss-links.ts","../src/common/workflows/update-links.ts","../src/customer/index.ts","../src/customer/steps/create-addresses.ts","../src/customer/steps/create-customers.ts","../src/customer/steps/delete-addresses.ts","../src/customer/steps/delete-customers.ts","../src/customer/steps/index.ts","../src/customer/steps/maybe-unset-default-billing-addresses.ts","../src/customer/steps/maybe-unset-default-shipping-addresses.ts","../src/customer/steps/update-addresses.ts","../src/customer/steps/update-customers.ts","../src/customer/steps/validate-customer-account-creation.ts","../src/customer/steps/utils/index.ts","../src/customer/steps/utils/unset-address-for-create.ts","../src/customer/steps/utils/unset-address-for-update.ts","../src/customer/workflows/create-addresses.ts","../src/customer/workflows/create-customer-account.ts","../src/customer/workflows/create-customers.ts","../src/customer/workflows/delete-addresses.ts","../src/customer/workflows/delete-customers.ts","../src/customer/workflows/index.ts","../src/customer/workflows/remove-customer-account.ts","../src/customer/workflows/update-addresses.ts","../src/customer/workflows/update-customers.ts","../src/customer-group/index.ts","../src/customer-group/steps/create-customer-groups.ts","../src/customer-group/steps/delete-customer-group-customers.ts","../src/customer-group/steps/delete-customer-groups.ts","../src/customer-group/steps/index.ts","../src/customer-group/steps/link-customer-groups-customer.ts","../src/customer-group/steps/link-customers-customer-group.ts","../src/customer-group/steps/update-customer-groups.ts","../src/customer-group/workflows/create-customer-groups.ts","../src/customer-group/workflows/delete-customer-groups.ts","../src/customer-group/workflows/index.ts","../src/customer-group/workflows/link-customer-groups-customer.ts","../src/customer-group/workflows/link-customers-customer-group.ts","../src/customer-group/workflows/update-customer-groups.ts","../src/defaults/index.ts","../src/defaults/steps/create-default-store.ts","../src/defaults/steps/index.ts","../src/defaults/workflows/create-defaults.ts","../src/defaults/workflows/index.ts","../src/draft-order/index.ts","../src/draft-order/steps/create-draft-order-line-item-adjustments.ts","../src/draft-order/steps/create-draft-order-shipping-method-adjustments.ts","../src/draft-order/steps/get-draft-order-promotion-context.ts","../src/draft-order/steps/index.ts","../src/draft-order/steps/remove-draft-order-line-item-adjustments.ts","../src/draft-order/steps/remove-draft-order-shipping-method-adjustments.ts","../src/draft-order/steps/restore-draft-order-shipping-methods.ts","../src/draft-order/steps/update-draft-order-promotions.ts","../src/draft-order/steps/update-draft-order-shipping-metod.ts","../src/draft-order/steps/validate-draft-order-change.ts","../src/draft-order/steps/validate-draft-order-remove-action-item.ts","../src/draft-order/steps/validate-draft-order-shipping-method-action.ts","../src/draft-order/steps/validate-draft-order-update-action-item.ts","../src/draft-order/steps/validate-draft-order.ts","../src/draft-order/steps/validate-promo-codes-to-add.ts","../src/draft-order/steps/validate-promo-codes-to-remove.ts","../src/draft-order/utils/fields.ts","../src/draft-order/utils/validation.ts","../src/draft-order/workflows/add-draft-order-items.ts","../src/draft-order/workflows/add-draft-order-promotions.ts","../src/draft-order/workflows/add-draft-order-shipping-methods.ts","../src/draft-order/workflows/begin-draft-order-edit.ts","../src/draft-order/workflows/cancel-draft-order-edit.ts","../src/draft-order/workflows/confirm-draft-order-edit.ts","../src/draft-order/workflows/convert-draft-order.ts","../src/draft-order/workflows/index.ts","../src/draft-order/workflows/refresh-draft-order-adjustments.ts","../src/draft-order/workflows/remove-draft-order-action-item.ts","../src/draft-order/workflows/remove-draft-order-action-shipping-method.ts","../src/draft-order/workflows/remove-draft-order-promotions.ts","../src/draft-order/workflows/remove-draft-order-shipping-method.ts","../src/draft-order/workflows/request-draft-order-edit.ts","../src/draft-order/workflows/update-draft-order-action-item.ts","../src/draft-order/workflows/update-draft-order-action-shipping-method.ts","../src/draft-order/workflows/update-draft-order-item.ts","../src/draft-order/workflows/update-draft-order-shipping-method.ts","../src/draft-order/workflows/update-draft-order.ts","../src/file/index.ts","../src/file/steps/delete-files.ts","../src/file/steps/index.ts","../src/file/steps/upload-files.ts","../src/file/workflows/delete-files.ts","../src/file/workflows/index.ts","../src/file/workflows/upload-files.ts","../src/fulfillment/index.ts","../src/fulfillment/steps/add-shipping-options-prices.ts","../src/fulfillment/steps/calculate-shipping-options-prices.ts","../src/fulfillment/steps/cancel-fulfillment.ts","../src/fulfillment/steps/create-fulfillment-set.ts","../src/fulfillment/steps/create-fulfillment.ts","../src/fulfillment/steps/create-return-fulfillment.ts","../src/fulfillment/steps/create-service-zones.ts","../src/fulfillment/steps/create-shipping-option-rules.ts","../src/fulfillment/steps/create-shipping-profiles.ts","../src/fulfillment/steps/delete-fulfillment-sets.ts","../src/fulfillment/steps/delete-service-zones.ts","../src/fulfillment/steps/delete-shipping-option-rules.ts","../src/fulfillment/steps/delete-shipping-options.ts","../src/fulfillment/steps/index.ts","../src/fulfillment/steps/set-shipping-options-price-sets.ts","../src/fulfillment/steps/set-shipping-options-prices.ts","../src/fulfillment/steps/update-fulfillment.ts","../src/fulfillment/steps/update-service-zones.ts","../src/fulfillment/steps/update-shipping-option-rules.ts","../src/fulfillment/steps/update-shipping-profiles.ts","../src/fulfillment/steps/upsert-shipping-options.ts","../src/fulfillment/steps/validate-fulfillment-providers.ts","../src/fulfillment/steps/validate-shipment.ts","../src/fulfillment/steps/validate-shipping-option-prices.ts","../src/fulfillment/workflows/batch-shipping-option-rules.ts","../src/fulfillment/workflows/calculate-shipping-options-prices.ts","../src/fulfillment/workflows/cancel-fulfillment.ts","../src/fulfillment/workflows/create-fulfillment.ts","../src/fulfillment/workflows/create-return-fulfillment.ts","../src/fulfillment/workflows/create-service-zones.ts","../src/fulfillment/workflows/create-shipment.ts","../src/fulfillment/workflows/create-shipping-options.ts","../src/fulfillment/workflows/create-shipping-profiles.ts","../src/fulfillment/workflows/delete-fulfillment-sets.ts","../src/fulfillment/workflows/delete-service-zones.ts","../src/fulfillment/workflows/delete-shipping-options.ts","../src/fulfillment/workflows/index.ts","../src/fulfillment/workflows/mark-fulfillment-as-delivered.ts","../src/fulfillment/workflows/update-fulfillment.ts","../src/fulfillment/workflows/update-service-zones.ts","../src/fulfillment/workflows/update-shipping-options.ts","../src/fulfillment/workflows/update-shipping-profiles.ts","../src/inventory/index.ts","../src/inventory/steps/adjust-inventory-levels.ts","../src/inventory/steps/attach-inventory-items.ts","../src/inventory/steps/create-inventory-items.ts","../src/inventory/steps/create-inventory-levels.ts","../src/inventory/steps/delete-inventory-items.ts","../src/inventory/steps/delete-inventory-levels.ts","../src/inventory/steps/index.ts","../src/inventory/steps/update-inventory-items.ts","../src/inventory/steps/update-inventory-levels.ts","../src/inventory/steps/validate-inventory-items.ts","../src/inventory/steps/validate-inventory-locations.ts","../src/inventory/steps/validate-singular-inventory-items-for-tags.ts","../src/inventory/workflows/batch-inventory-item-levels.ts","../src/inventory/workflows/bulk-create-delete-levels.ts","../src/inventory/workflows/create-inventory-items.ts","../src/inventory/workflows/create-inventory-levels.ts","../src/inventory/workflows/delete-inventory-items.ts","../src/inventory/workflows/delete-inventory-levels.ts","../src/inventory/workflows/index.ts","../src/inventory/workflows/update-inventory-items.ts","../src/inventory/workflows/update-inventory-levels.ts","../src/invite/index.ts","../src/invite/steps/create-invites.ts","../src/invite/steps/delete-invites.ts","../src/invite/steps/index.ts","../src/invite/steps/refresh-invite-tokens.ts","../src/invite/steps/validate-token.ts","../src/invite/workflows/accept-invite.ts","../src/invite/workflows/create-invites.ts","../src/invite/workflows/delete-invites.ts","../src/invite/workflows/index.ts","../src/invite/workflows/refresh-invite-tokens.ts","../src/line-item/index.ts","../src/line-item/steps/delete-line-items.ts","../src/line-item/steps/index.ts","../src/line-item/steps/list-line-items.ts","../src/line-item/steps/update-line-items.ts","../src/line-item/workflows/delete-line-items.ts","../src/line-item/workflows/index.ts","../src/notification/index.ts","../src/notification/steps/index.ts","../src/notification/steps/notify-on-failure.ts","../src/notification/steps/send-notifications.ts","../src/order/index.ts","../src/order/steps/add-order-transaction.ts","../src/order/steps/archive-orders.ts","../src/order/steps/cancel-fulfillment.ts","../src/order/steps/cancel-order-change.ts","../src/order/steps/cancel-orders.ts","../src/order/steps/complete-orders.ts","../src/order/steps/confirm-order-changes.ts","../src/order/steps/create-line-items.ts","../src/order/steps/create-order-change.ts","../src/order/steps/create-order-shipping-methods.ts","../src/order/steps/create-orders.ts","../src/order/steps/decline-order-change.ts","../src/order/steps/delete-line-items.ts","../src/order/steps/delete-order-change-actions.ts","../src/order/steps/delete-order-changes.ts","../src/order/steps/delete-order-shipping-methods.ts","../src/order/steps/index.ts","../src/order/steps/preview-order-change.ts","../src/order/steps/register-delivery.ts","../src/order/steps/register-fulfillment.ts","../src/order/steps/register-order-changes.ts","../src/order/steps/register-shipment.ts","../src/order/steps/set-tax-lines-for-items.ts","../src/order/steps/update-order-change-actions.ts","../src/order/steps/update-order-changes.ts","../src/order/steps/update-orders.ts","../src/order/steps/update-shipping-methods.ts","../src/order/steps/claim/cancel-claim.ts","../src/order/steps/claim/create-claim-items-from-actions.ts","../src/order/steps/claim/create-claims.ts","../src/order/steps/claim/delete-claims.ts","../src/order/steps/claim/update-order-claims.ts","../src/order/steps/exchange/cancel-exchange.ts","../src/order/steps/exchange/create-exchange-items-from-actions.ts","../src/order/steps/exchange/create-exchange.ts","../src/order/steps/exchange/delete-exchanges.ts","../src/order/steps/exchange/update-order-exchanges.ts","../src/order/steps/return/cancel-return.ts","../src/order/steps/return/create-complete-return.ts","../src/order/steps/return/create-return-items-from-actions.ts","../src/order/steps/return/create-returns.ts","../src/order/steps/return/delete-returns.ts","../src/order/steps/return/receive-return.ts","../src/order/steps/return/update-return-items.ts","../src/order/steps/return/update-returns.ts","../src/order/utils/aggregate-status.ts","../src/order/utils/build-reservations-map.ts","../src/order/utils/fields.ts","../src/order/utils/order-validation.ts","../src/order/utils/prepare-shipping-method.ts","../src/order/utils/validate-return-reason.ts","../src/order/utils/__tests__/aggregate-status.spec.ts","../src/order/workflows/add-line-items.ts","../src/order/workflows/archive-orders.ts","../src/order/workflows/cancel-order-change.ts","../src/order/workflows/cancel-order-fulfillment.ts","../src/order/workflows/cancel-order.ts","../src/order/workflows/complete-orders.ts","../src/order/workflows/create-fulfillment.ts","../src/order/workflows/create-or-update-order-payment-collection.ts","../src/order/workflows/create-order-change-actions.ts","../src/order/workflows/create-order-change.ts","../src/order/workflows/create-order-credit-lines.ts","../src/order/workflows/create-order-payment-collection.ts","../src/order/workflows/create-order.ts","../src/order/workflows/create-shipment.ts","../src/order/workflows/decline-order-change.ts","../src/order/workflows/delete-order-change-actions.ts","../src/order/workflows/delete-order-change.ts","../src/order/workflows/delete-order-payment-collection.ts","../src/order/workflows/fetch-shipping-option.ts","../src/order/workflows/get-order-detail.ts","../src/order/workflows/get-orders-list.ts","../src/order/workflows/index.ts","../src/order/workflows/mark-order-fulfillment-as-delivered.ts","../src/order/workflows/mark-payment-collection-as-paid.ts","../src/order/workflows/maybe-refresh-shipping-methods.ts","../src/order/workflows/update-order-change-actions.ts","../src/order/workflows/update-order-changes.ts","../src/order/workflows/update-order.ts","../src/order/workflows/update-tax-lines.ts","../src/order/workflows/claim/begin-order-claim.ts","../src/order/workflows/claim/cancel-begin-order-claim.ts","../src/order/workflows/claim/cancel-claim.ts","../src/order/workflows/claim/claim-add-new-item.ts","../src/order/workflows/claim/claim-item.ts","../src/order/workflows/claim/claim-request-item-return.ts","../src/order/workflows/claim/confirm-claim-request.ts","../src/order/workflows/claim/create-claim-shipping-method.ts","../src/order/workflows/claim/refresh-shipping.ts","../src/order/workflows/claim/remove-claim-add-item-action.ts","../src/order/workflows/claim/remove-claim-item-action.ts","../src/order/workflows/claim/remove-claim-shipping-method.ts","../src/order/workflows/claim/update-claim-add-item.ts","../src/order/workflows/claim/update-claim-item.ts","../src/order/workflows/claim/update-claim-shipping-method.ts","../src/order/workflows/exchange/begin-order-exchange.ts","../src/order/workflows/exchange/cancel-begin-order-exchange.ts","../src/order/workflows/exchange/cancel-exchange.ts","../src/order/workflows/exchange/confirm-exchange-request.ts","../src/order/workflows/exchange/create-exchange-shipping-method.ts","../src/order/workflows/exchange/exchange-add-new-item.ts","../src/order/workflows/exchange/exchange-request-item-return.ts","../src/order/workflows/exchange/refresh-shipping.ts","../src/order/workflows/exchange/remove-exchange-item-action.ts","../src/order/workflows/exchange/remove-exchange-shipping-method.ts","../src/order/workflows/exchange/update-exchange-add-item.ts","../src/order/workflows/exchange/update-exchange-shipping-method.ts","../src/order/workflows/order-edit/begin-order-edit.ts","../src/order/workflows/order-edit/cancel-begin-order-edit.ts","../src/order/workflows/order-edit/confirm-order-edit-request.ts","../src/order/workflows/order-edit/create-order-edit-shipping-method.ts","../src/order/workflows/order-edit/order-edit-add-new-item.ts","../src/order/workflows/order-edit/order-edit-update-item-quantity.ts","../src/order/workflows/order-edit/remove-order-edit-item-action.ts","../src/order/workflows/order-edit/remove-order-edit-shipping-method.ts","../src/order/workflows/order-edit/request-order-edit.ts","../src/order/workflows/order-edit/update-order-edit-add-item.ts","../src/order/workflows/order-edit/update-order-edit-item-quantity.ts","../src/order/workflows/order-edit/update-order-edit-shipping-method.ts","../src/order/workflows/payments/create-order-refund-credit-lines.ts","../src/order/workflows/payments/refund-captured-payments.ts","../src/order/workflows/return/begin-receive-return.ts","../src/order/workflows/return/begin-return.ts","../src/order/workflows/return/cancel-receive-return.ts","../src/order/workflows/return/cancel-request-return.ts","../src/order/workflows/return/cancel-return.ts","../src/order/workflows/return/confirm-receive-return-request.ts","../src/order/workflows/return/confirm-return-request.ts","../src/order/workflows/return/create-complete-return.ts","../src/order/workflows/return/create-return-shipping-method.ts","../src/order/workflows/return/dismiss-item-return-request.ts","../src/order/workflows/return/receive-complete-return.ts","../src/order/workflows/return/receive-item-return-request.ts","../src/order/workflows/return/refresh-shipping.ts","../src/order/workflows/return/remove-item-receive-return-action.ts","../src/order/workflows/return/remove-item-return-action.ts","../src/order/workflows/return/remove-return-shipping-method.ts","../src/order/workflows/return/request-item-return.ts","../src/order/workflows/return/update-receive-item-return-request.ts","../src/order/workflows/return/update-request-item-return.ts","../src/order/workflows/return/update-return-shipping-method.ts","../src/order/workflows/return/update-return.ts","../src/order/workflows/transfer/accept-order-transfer.ts","../src/order/workflows/transfer/cancel-order-transfer.ts","../src/order/workflows/transfer/decline-order-transfer.ts","../src/order/workflows/transfer/request-order-transfer.ts","../src/payment/index.ts","../src/payment/steps/authorize-payment-session.ts","../src/payment/steps/cancel-payment.ts","../src/payment/steps/capture-payment.ts","../src/payment/steps/index.ts","../src/payment/steps/refund-payment.ts","../src/payment/steps/refund-payments.ts","../src/payment/workflows/capture-payment.ts","../src/payment/workflows/index.ts","../src/payment/workflows/process-payment.ts","../src/payment/workflows/refund-payment.ts","../src/payment/workflows/refund-payments.ts","../src/payment-collection/index.ts","../src/payment-collection/steps/cancel-payment.ts","../src/payment-collection/steps/create-payment-account-holder.ts","../src/payment-collection/steps/create-payment-session.ts","../src/payment-collection/steps/create-refund-reasons.ts","../src/payment-collection/steps/delete-payment-sessions.ts","../src/payment-collection/steps/delete-refund-reasons.ts","../src/payment-collection/steps/index.ts","../src/payment-collection/steps/update-payment-collection.ts","../src/payment-collection/steps/update-refund-reasons.ts","../src/payment-collection/steps/validate-deleted-payment-sessions.ts","../src/payment-collection/workflows/cancel-payment-collection.ts","../src/payment-collection/workflows/create-payment-session.ts","../src/payment-collection/workflows/create-refund-reasons.ts","../src/payment-collection/workflows/delete-payment-sessions.ts","../src/payment-collection/workflows/delete-refund-reasons.ts","../src/payment-collection/workflows/index.ts","../src/payment-collection/workflows/update-refund-reasons.ts","../src/price-list/index.ts","../src/price-list/steps/create-price-list-prices.ts","../src/price-list/steps/create-price-lists.ts","../src/price-list/steps/delete-price-lists.ts","../src/price-list/steps/get-existing-price-lists-price-ids.ts","../src/price-list/steps/index.ts","../src/price-list/steps/remove-price-list-prices.ts","../src/price-list/steps/update-price-list-prices.ts","../src/price-list/steps/update-price-lists.ts","../src/price-list/steps/validate-price-lists.ts","../src/price-list/steps/validate-variant-price-links.ts","../src/price-list/workflows/batch-price-list-prices.ts","../src/price-list/workflows/create-price-list-prices.ts","../src/price-list/workflows/create-price-lists.ts","../src/price-list/workflows/delete-price-lists.ts","../src/price-list/workflows/index.ts","../src/price-list/workflows/remove-price-list-prices.ts","../src/price-list/workflows/update-price-list-prices.ts","../src/price-list/workflows/update-price-lists.ts","../src/pricing/index.ts","../src/pricing/steps/create-price-preferences.ts","../src/pricing/steps/create-price-sets.ts","../src/pricing/steps/delete-price-preferences.ts","../src/pricing/steps/index.ts","../src/pricing/steps/update-price-preferences-as-array.ts","../src/pricing/steps/update-price-preferences.ts","../src/pricing/steps/update-price-sets.ts","../src/pricing/workflows/create-price-preferences.ts","../src/pricing/workflows/delete-price-preferences.ts","../src/pricing/workflows/index.ts","../src/pricing/workflows/update-price-preferences.ts","../src/product/index.ts","../src/product/helpers/normalize-for-export.ts","../src/product/helpers/normalize-for-import.ts","../src/product/helpers/normalize-v1-import.ts","../src/product/steps/batch-link-products-collection.ts","../src/product/steps/batch-link-products-in-category.ts","../src/product/steps/create-collections.ts","../src/product/steps/create-product-options.ts","../src/product/steps/create-product-tags.ts","../src/product/steps/create-product-types.ts","../src/product/steps/create-product-variants.ts","../src/product/steps/create-products.ts","../src/product/steps/create-variant-pricing-link.ts","../src/product/steps/delete-collections.ts","../src/product/steps/delete-product-options.ts","../src/product/steps/delete-product-tags.ts","../src/product/steps/delete-product-types.ts","../src/product/steps/delete-product-variants.ts","../src/product/steps/delete-products.ts","../src/product/steps/generate-product-csv.ts","../src/product/steps/get-all-products.ts","../src/product/steps/get-products.ts","../src/product/steps/get-variant-availability.ts","../src/product/steps/get-variant-pricing-link.ts","../src/product/steps/group-products-for-batch.ts","../src/product/steps/index.ts","../src/product/steps/parse-product-csv.ts","../src/product/steps/update-collections.ts","../src/product/steps/update-product-options.ts","../src/product/steps/update-product-tags.ts","../src/product/steps/update-product-types.ts","../src/product/steps/update-product-variants.ts","../src/product/steps/update-products.ts","../src/product/steps/wait-confirmation-product-import.ts","../src/product/utlils/csvtojson.ts","../src/product/utlils/index.ts","../src/product/utlils/jsontocsv.ts","../src/product/workflows/batch-link-products-collection.ts","../src/product/workflows/batch-product-variants.ts","../src/product/workflows/batch-products-in-category.ts","../src/product/workflows/batch-products.ts","../src/product/workflows/create-collections.ts","../src/product/workflows/create-product-options.ts","../src/product/workflows/create-product-tags.ts","../src/product/workflows/create-product-types.ts","../src/product/workflows/create-product-variants.ts","../src/product/workflows/create-products.ts","../src/product/workflows/delete-collections.ts","../src/product/workflows/delete-product-options.ts","../src/product/workflows/delete-product-tags.ts","../src/product/workflows/delete-product-types.ts","../src/product/workflows/delete-product-variants.ts","../src/product/workflows/delete-products.ts","../src/product/workflows/export-products.ts","../src/product/workflows/import-products.ts","../src/product/workflows/index.ts","../src/product/workflows/update-collections.ts","../src/product/workflows/update-product-options.ts","../src/product/workflows/update-product-tags.ts","../src/product/workflows/update-product-types.ts","../src/product/workflows/update-product-variants.ts","../src/product/workflows/update-products.ts","../src/product/workflows/upsert-variant-prices.ts","../src/product-category/index.ts","../src/product-category/steps/create-product-categories.ts","../src/product-category/steps/delete-product-categories.ts","../src/product-category/steps/index.ts","../src/product-category/steps/update-product-categories.ts","../src/product-category/workflows/create-product-categories.ts","../src/product-category/workflows/delete-product-categories.ts","../src/product-category/workflows/index.ts","../src/product-category/workflows/update-product-categories.ts","../src/promotion/index.ts","../src/promotion/steps/add-campaign-promotions.ts","../src/promotion/steps/add-or-remove-campaign-promotions.ts","../src/promotion/steps/add-rules-to-promotions.ts","../src/promotion/steps/create-campaigns.ts","../src/promotion/steps/create-promotions.ts","../src/promotion/steps/delete-campaigns.ts","../src/promotion/steps/delete-promotion-rules-workflow.ts","../src/promotion/steps/delete-promotions.ts","../src/promotion/steps/index.ts","../src/promotion/steps/register-usage.ts","../src/promotion/steps/remove-campaign-promotions.ts","../src/promotion/steps/remove-rules-from-promotions.ts","../src/promotion/steps/update-campaigns.ts","../src/promotion/steps/update-promotion-rules.ts","../src/promotion/steps/update-promotions.ts","../src/promotion/workflows/add-or-remove-campaign-promotions.ts","../src/promotion/workflows/batch-promotion-rules.ts","../src/promotion/workflows/create-campaigns.ts","../src/promotion/workflows/create-promotion-rules.ts","../src/promotion/workflows/create-promotions.ts","../src/promotion/workflows/delete-campaigns.ts","../src/promotion/workflows/delete-promotion-rules.ts","../src/promotion/workflows/delete-promotions.ts","../src/promotion/workflows/index.ts","../src/promotion/workflows/update-campaigns.ts","../src/promotion/workflows/update-promotion-rules.ts","../src/promotion/workflows/update-promotions-status.ts","../src/promotion/workflows/update-promotions.ts","../src/region/index.ts","../src/region/steps/create-regions.ts","../src/region/steps/delete-regions.ts","../src/region/steps/index.ts","../src/region/steps/set-regions-payment-providers.ts","../src/region/steps/update-regions.ts","../src/region/workflows/create-regions.ts","../src/region/workflows/delete-regions.ts","../src/region/workflows/index.ts","../src/region/workflows/update-regions.ts","../src/reservation/index.ts","../src/reservation/steps/create-reservations.ts","../src/reservation/steps/delete-reservations-by-line-items.ts","../src/reservation/steps/delete-reservations.ts","../src/reservation/steps/index.ts","../src/reservation/steps/update-reservations.ts","../src/reservation/workflows/create-reservations.ts","../src/reservation/workflows/delete-reservations-by-line-items.ts","../src/reservation/workflows/delete-reservations.ts","../src/reservation/workflows/index.ts","../src/reservation/workflows/update-reservations.ts","../src/return-reason/index.ts","../src/return-reason/steps/create-return-reasons.ts","../src/return-reason/steps/delete-return-reasons.ts","../src/return-reason/steps/index.ts","../src/return-reason/steps/update-return-reasons.ts","../src/return-reason/workflows/create-return-reasons.ts","../src/return-reason/workflows/delete-return-reasons.ts","../src/return-reason/workflows/index.ts","../src/return-reason/workflows/update-return-reasons.ts","../src/sales-channel/index.ts","../src/sales-channel/steps/associate-locations-with-channels.ts","../src/sales-channel/steps/associate-products-with-channels.ts","../src/sales-channel/steps/can-delete-sales-channels.ts","../src/sales-channel/steps/create-default-sales-channel.ts","../src/sales-channel/steps/create-sales-channels.ts","../src/sales-channel/steps/delete-sales-channels.ts","../src/sales-channel/steps/detach-locations-from-channels.ts","../src/sales-channel/steps/detach-products-from-sales-channels.ts","../src/sales-channel/steps/index.ts","../src/sales-channel/steps/update-sales-channels.ts","../src/sales-channel/workflows/create-sales-channels.ts","../src/sales-channel/workflows/delete-sales-channels.ts","../src/sales-channel/workflows/index.ts","../src/sales-channel/workflows/link-products-to-sales-channel.ts","../src/sales-channel/workflows/update-sales-channels.ts","../src/shipping-options/index.ts","../src/shipping-options/steps/index.ts","../src/shipping-options/steps/list-shipping-options-for-context.ts","../src/shipping-profile/index.ts","../src/shipping-profile/steps/delete-shipping-profile.ts","../src/shipping-profile/steps/index.ts","../src/shipping-profile/workflows/delete-shipping-profile.ts","../src/shipping-profile/workflows/index.ts","../src/stock-location/index.ts","../src/stock-location/steps/associate-locations-with-fulfillment-sets.ts","../src/stock-location/steps/create-stock-locations.ts","../src/stock-location/steps/delete-stock-locations.ts","../src/stock-location/steps/index.ts","../src/stock-location/steps/update-stock-locations.ts","../src/stock-location/steps/upsert-stock-location-addresses.ts","../src/stock-location/workflows/create-location-fulfillment-set.ts","../src/stock-location/workflows/create-stock-locations.ts","../src/stock-location/workflows/delete-stock-locations.ts","../src/stock-location/workflows/index.ts","../src/stock-location/workflows/link-sales-channels-to-stock-location.ts","../src/stock-location/workflows/update-stock-locations.ts","../src/store/index.ts","../src/store/steps/create-stores.ts","../src/store/steps/delete-stores.ts","../src/store/steps/index.ts","../src/store/steps/update-stores.ts","../src/store/workflows/create-stores.ts","../src/store/workflows/delete-stores.ts","../src/store/workflows/index.ts","../src/store/workflows/update-stores.ts","../src/tax/index.ts","../src/tax/steps/create-tax-rate-rules.ts","../src/tax/steps/create-tax-rates.ts","../src/tax/steps/create-tax-regions.ts","../src/tax/steps/delete-tax-rate-rules.ts","../src/tax/steps/delete-tax-rates.ts","../src/tax/steps/delete-tax-regions.ts","../src/tax/steps/get-item-tax-lines.ts","../src/tax/steps/index.ts","../src/tax/steps/list-tax-rate-ids.ts","../src/tax/steps/list-tax-rate-rule-ids.ts","../src/tax/steps/update-tax-rates.ts","../src/tax/steps/update-tax-regions.ts","../src/tax/workflows/create-tax-rate-rules.ts","../src/tax/workflows/create-tax-rates.ts","../src/tax/workflows/create-tax-regions.ts","../src/tax/workflows/delete-tax-rate-rules.ts","../src/tax/workflows/delete-tax-rates.ts","../src/tax/workflows/delete-tax-regions.ts","../src/tax/workflows/index.ts","../src/tax/workflows/set-tax-rate-rules.ts","../src/tax/workflows/update-tax-rates.ts","../src/tax/workflows/update-tax-regions.ts","../src/user/index.ts","../src/user/steps/create-users.ts","../src/user/steps/delete-users.ts","../src/user/steps/index.ts","../src/user/steps/update-users.ts","../src/user/workflows/create-user-account.ts","../src/user/workflows/create-users.ts","../src/user/workflows/delete-users.ts","../src/user/workflows/index.ts","../src/user/workflows/remove-user-account.ts","../src/user/workflows/update-users.ts"],"version":"5.6.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/core-flows",
3
- "version": "2.7.2-snapshot-20250509130548",
3
+ "version": "2.7.2-snapshot-20250512074420",
4
4
  "description": "Set of workflow definitions for Medusa",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -26,7 +26,7 @@
26
26
  "author": "Medusa",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@medusajs/framework": "2.7.2-snapshot-20250509130548",
29
+ "@medusajs/framework": "2.7.2-snapshot-20250512074420",
30
30
  "@mikro-orm/core": "6.4.3",
31
31
  "@mikro-orm/knex": "6.4.3",
32
32
  "@mikro-orm/migrations": "6.4.3",
@@ -44,7 +44,7 @@
44
44
  "json-2-csv": "^5.5.4"
45
45
  },
46
46
  "peerDependencies": {
47
- "@medusajs/framework": "2.7.2-snapshot-20250509130548",
47
+ "@medusajs/framework": "2.7.2-snapshot-20250512074420",
48
48
  "awilix": "^8.0.1"
49
49
  },
50
50
  "scripts": {