@medusajs/order 0.1.3-snapshot-20240718083016 → 0.1.3-snapshot-20240719133408

Sign up to get free protection for your applications and to get access to all the features.
Files changed (331) hide show
  1. package/dist/index.d.ts +6 -8
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +4 -26
  4. package/dist/index.js.map +1 -1
  5. package/dist/migrations/Migration20240219102530.d.ts +1 -0
  6. package/dist/migrations/Migration20240219102530.d.ts.map +1 -0
  7. package/dist/migrations/Migration20240219102530.js +38 -4
  8. package/dist/migrations/Migration20240219102530.js.map +1 -1
  9. package/dist/migrations/Migration20240604100512.d.ts +5 -0
  10. package/dist/migrations/Migration20240604100512.d.ts.map +1 -0
  11. package/dist/migrations/Migration20240604100512.js +364 -0
  12. package/dist/migrations/Migration20240604100512.js.map +1 -0
  13. package/dist/migrations/Migration20240715102100.d.ts +5 -0
  14. package/dist/migrations/Migration20240715102100.d.ts.map +1 -0
  15. package/dist/migrations/Migration20240715102100.js +15 -0
  16. package/dist/migrations/Migration20240715102100.js.map +1 -0
  17. package/dist/migrations/Migration20240715174100.d.ts +5 -0
  18. package/dist/migrations/Migration20240715174100.d.ts.map +1 -0
  19. package/dist/migrations/Migration20240715174100.js +21 -0
  20. package/dist/migrations/Migration20240715174100.js.map +1 -0
  21. package/dist/migrations/Migration20240716081800.d.ts +5 -0
  22. package/dist/migrations/Migration20240716081800.d.ts.map +1 -0
  23. package/dist/migrations/Migration20240716081800.js +67 -0
  24. package/dist/migrations/Migration20240716081800.js.map +1 -0
  25. package/dist/models/address.d.ts +2 -1
  26. package/dist/models/address.d.ts.map +1 -0
  27. package/dist/models/adjustment-line.d.ts +3 -1
  28. package/dist/models/adjustment-line.d.ts.map +1 -0
  29. package/dist/models/adjustment-line.js +5 -0
  30. package/dist/models/adjustment-line.js.map +1 -1
  31. package/dist/models/claim-item-image.d.ts +19 -0
  32. package/dist/models/claim-item-image.d.ts.map +1 -0
  33. package/dist/models/claim-item-image.js +109 -0
  34. package/dist/models/claim-item-image.js.map +1 -0
  35. package/dist/models/claim-item.d.ts +29 -0
  36. package/dist/models/claim-item.d.ts.map +1 -0
  37. package/dist/models/claim-item.js +156 -0
  38. package/dist/models/claim-item.js.map +1 -0
  39. package/dist/models/claim.d.ts +36 -0
  40. package/dist/models/claim.d.ts.map +1 -0
  41. package/dist/models/claim.js +195 -0
  42. package/dist/models/claim.js.map +1 -0
  43. package/dist/models/exchange-item.d.ts +24 -0
  44. package/dist/models/exchange-item.d.ts.map +1 -0
  45. package/dist/models/exchange-item.js +138 -0
  46. package/dist/models/exchange-item.js.map +1 -0
  47. package/dist/models/exchange.d.ts +34 -0
  48. package/dist/models/exchange.d.ts.map +1 -0
  49. package/dist/models/exchange.js +188 -0
  50. package/dist/models/exchange.js.map +1 -0
  51. package/dist/models/index.d.ts +9 -0
  52. package/dist/models/index.d.ts.map +1 -0
  53. package/dist/models/index.js +17 -1
  54. package/dist/models/index.js.map +1 -1
  55. package/dist/models/line-item-adjustment.d.ts +3 -1
  56. package/dist/models/line-item-adjustment.d.ts.map +1 -0
  57. package/dist/models/line-item-adjustment.js +3 -3
  58. package/dist/models/line-item-adjustment.js.map +1 -1
  59. package/dist/models/line-item-tax-line.d.ts +3 -1
  60. package/dist/models/line-item-tax-line.d.ts.map +1 -0
  61. package/dist/models/line-item-tax-line.js +3 -3
  62. package/dist/models/line-item-tax-line.js.map +1 -1
  63. package/dist/models/line-item.d.ts +3 -1
  64. package/dist/models/line-item.d.ts.map +1 -0
  65. package/dist/models/line-item.js +18 -4
  66. package/dist/models/line-item.js.map +1 -1
  67. package/dist/models/order-change-action.d.ts +15 -4
  68. package/dist/models/order-change-action.d.ts.map +1 -0
  69. package/dist/models/order-change-action.js +102 -7
  70. package/dist/models/order-change-action.js.map +1 -1
  71. package/dist/models/order-change.d.ts +17 -5
  72. package/dist/models/order-change.d.ts.map +1 -0
  73. package/dist/models/order-change.js +109 -4
  74. package/dist/models/order-change.js.map +1 -1
  75. package/dist/models/order-item.d.ts +5 -4
  76. package/dist/models/order-item.d.ts.map +1 -0
  77. package/dist/models/order-item.js +13 -13
  78. package/dist/models/order-item.js.map +1 -1
  79. package/dist/models/order-shipping-method.d.ts +14 -4
  80. package/dist/models/order-shipping-method.d.ts.map +1 -0
  81. package/dist/models/order-shipping-method.js +89 -13
  82. package/dist/models/order-shipping-method.js.map +1 -1
  83. package/dist/models/order-summary.d.ts +6 -7
  84. package/dist/models/order-summary.d.ts.map +1 -0
  85. package/dist/models/order-summary.js +9 -6
  86. package/dist/models/order-summary.js.map +1 -1
  87. package/dist/models/order.d.ts +6 -4
  88. package/dist/models/order.d.ts.map +1 -0
  89. package/dist/models/order.js +11 -1
  90. package/dist/models/order.js.map +1 -1
  91. package/dist/models/return-item.d.ts +29 -0
  92. package/dist/models/return-item.d.ts.map +1 -0
  93. package/dist/models/return-item.js +170 -0
  94. package/dist/models/return-item.js.map +1 -0
  95. package/dist/models/return-reason.d.ts +21 -0
  96. package/dist/models/return-reason.d.ts.map +1 -0
  97. package/dist/models/return-reason.js +120 -0
  98. package/dist/models/return-reason.js.map +1 -0
  99. package/dist/models/return.d.ts +39 -0
  100. package/dist/models/return.d.ts.map +1 -0
  101. package/dist/models/return.js +216 -0
  102. package/dist/models/return.js.map +1 -0
  103. package/dist/models/shipping-method-adjustment.d.ts +3 -1
  104. package/dist/models/shipping-method-adjustment.d.ts.map +1 -0
  105. package/dist/models/shipping-method-adjustment.js +3 -3
  106. package/dist/models/shipping-method-adjustment.js.map +1 -1
  107. package/dist/models/shipping-method-tax-line.d.ts +3 -1
  108. package/dist/models/shipping-method-tax-line.d.ts.map +1 -0
  109. package/dist/models/shipping-method-tax-line.js +3 -3
  110. package/dist/models/shipping-method-tax-line.js.map +1 -1
  111. package/dist/models/shipping-method.d.ts +2 -0
  112. package/dist/models/shipping-method.d.ts.map +1 -0
  113. package/dist/models/shipping-method.js +17 -4
  114. package/dist/models/shipping-method.js.map +1 -1
  115. package/dist/models/tax-line.d.ts +2 -0
  116. package/dist/models/tax-line.d.ts.map +1 -0
  117. package/dist/models/tax-line.js +7 -0
  118. package/dist/models/tax-line.js.map +1 -1
  119. package/dist/models/transaction.d.ts +15 -3
  120. package/dist/models/transaction.d.ts.map +1 -0
  121. package/dist/models/transaction.js +109 -4
  122. package/dist/models/transaction.js.map +1 -1
  123. package/dist/repositories/claim.d.ts +9 -0
  124. package/dist/repositories/claim.d.ts.map +1 -0
  125. package/dist/repositories/claim.js +11 -0
  126. package/dist/repositories/claim.js.map +1 -0
  127. package/dist/repositories/exchange.d.ts +9 -0
  128. package/dist/repositories/exchange.d.ts.map +1 -0
  129. package/dist/repositories/exchange.js +11 -0
  130. package/dist/repositories/exchange.js.map +1 -0
  131. package/dist/repositories/index.d.ts +4 -1
  132. package/dist/repositories/index.d.ts.map +1 -0
  133. package/dist/repositories/index.js +7 -16
  134. package/dist/repositories/index.js.map +1 -1
  135. package/dist/repositories/order.d.ts +1 -3
  136. package/dist/repositories/order.d.ts.map +1 -0
  137. package/dist/repositories/order.js +2 -85
  138. package/dist/repositories/order.js.map +1 -1
  139. package/dist/repositories/return.d.ts +9 -0
  140. package/dist/repositories/return.d.ts.map +1 -0
  141. package/dist/repositories/return.js +11 -0
  142. package/dist/repositories/return.js.map +1 -0
  143. package/dist/services/actions/cancel-claim.d.ts +3 -0
  144. package/dist/services/actions/cancel-claim.d.ts.map +1 -0
  145. package/dist/services/actions/cancel-claim.js +107 -0
  146. package/dist/services/actions/cancel-claim.js.map +1 -0
  147. package/dist/services/actions/cancel-exchange.d.ts +3 -0
  148. package/dist/services/actions/cancel-exchange.d.ts.map +1 -0
  149. package/dist/services/actions/cancel-exchange.js +92 -0
  150. package/dist/services/actions/cancel-exchange.js.map +1 -0
  151. package/dist/services/actions/cancel-fulfillment.d.ts +3 -0
  152. package/dist/services/actions/cancel-fulfillment.d.ts.map +1 -0
  153. package/dist/services/actions/cancel-fulfillment.js +32 -0
  154. package/dist/services/actions/cancel-fulfillment.js.map +1 -0
  155. package/dist/services/actions/cancel-return.d.ts +3 -0
  156. package/dist/services/actions/cancel-return.d.ts.map +1 -0
  157. package/dist/services/actions/cancel-return.js +72 -0
  158. package/dist/services/actions/cancel-return.js.map +1 -0
  159. package/dist/services/actions/create-claim.d.ts +3 -0
  160. package/dist/services/actions/create-claim.d.ts.map +1 -0
  161. package/dist/services/actions/create-claim.js +228 -0
  162. package/dist/services/actions/create-claim.js.map +1 -0
  163. package/dist/services/actions/create-exchange.d.ts +3 -0
  164. package/dist/services/actions/create-exchange.d.ts.map +1 -0
  165. package/dist/services/actions/create-exchange.js +193 -0
  166. package/dist/services/actions/create-exchange.js.map +1 -0
  167. package/dist/services/actions/create-return.d.ts +3 -0
  168. package/dist/services/actions/create-return.d.ts.map +1 -0
  169. package/dist/services/actions/create-return.js +102 -0
  170. package/dist/services/actions/create-return.js.map +1 -0
  171. package/dist/services/actions/index.d.ts +11 -0
  172. package/dist/services/actions/index.d.ts.map +1 -0
  173. package/dist/services/actions/index.js +27 -0
  174. package/dist/services/actions/index.js.map +1 -0
  175. package/dist/services/actions/receive-return.d.ts +3 -0
  176. package/dist/services/actions/receive-return.d.ts.map +1 -0
  177. package/dist/services/actions/receive-return.js +72 -0
  178. package/dist/services/actions/receive-return.js.map +1 -0
  179. package/dist/services/actions/register-fulfillment.d.ts +3 -0
  180. package/dist/services/actions/register-fulfillment.d.ts.map +1 -0
  181. package/dist/services/actions/register-fulfillment.js +30 -0
  182. package/dist/services/actions/register-fulfillment.js.map +1 -0
  183. package/dist/services/actions/register-shipment.d.ts +3 -0
  184. package/dist/services/actions/register-shipment.d.ts.map +1 -0
  185. package/dist/services/actions/register-shipment.js +38 -0
  186. package/dist/services/actions/register-shipment.js.map +1 -0
  187. package/dist/services/index.d.ts +1 -1
  188. package/dist/services/index.d.ts.map +1 -0
  189. package/dist/services/index.js +1 -3
  190. package/dist/services/index.js.map +1 -1
  191. package/dist/services/order-module-service.d.ts +138 -67
  192. package/dist/services/order-module-service.d.ts.map +1 -0
  193. package/dist/services/order-module-service.js +993 -241
  194. package/dist/services/order-module-service.js.map +1 -1
  195. package/dist/services/order-service.d.ts +5 -4
  196. package/dist/services/order-service.d.ts.map +1 -0
  197. package/dist/services/order-service.js +1 -1
  198. package/dist/services/order-service.js.map +1 -1
  199. package/dist/types/address.d.ts +1 -0
  200. package/dist/types/address.d.ts.map +1 -0
  201. package/dist/types/index.d.ts +3 -1
  202. package/dist/types/index.d.ts.map +1 -0
  203. package/dist/types/index.js +1 -0
  204. package/dist/types/index.js.map +1 -1
  205. package/dist/types/line-item-adjustment.d.ts +1 -0
  206. package/dist/types/line-item-adjustment.d.ts.map +1 -0
  207. package/dist/types/line-item-tax-line.d.ts +1 -0
  208. package/dist/types/line-item-tax-line.d.ts.map +1 -0
  209. package/dist/types/line-item.d.ts +1 -0
  210. package/dist/types/line-item.d.ts.map +1 -0
  211. package/dist/types/order-change.d.ts +6 -0
  212. package/dist/types/order-change.d.ts.map +1 -0
  213. package/dist/types/order-change.js +3 -0
  214. package/dist/types/order-change.js.map +1 -0
  215. package/dist/types/order-detail.d.ts +2 -1
  216. package/dist/types/order-detail.d.ts.map +1 -0
  217. package/dist/types/order.d.ts +3 -2
  218. package/dist/types/order.d.ts.map +1 -0
  219. package/dist/types/shipping-method-adjustment.d.ts +1 -0
  220. package/dist/types/shipping-method-adjustment.d.ts.map +1 -0
  221. package/dist/types/shipping-method-tax-line.d.ts +1 -0
  222. package/dist/types/shipping-method-tax-line.d.ts.map +1 -0
  223. package/dist/types/shipping-method.d.ts +4 -0
  224. package/dist/types/shipping-method.d.ts.map +1 -0
  225. package/dist/types/tax-line.d.ts +1 -0
  226. package/dist/types/tax-line.d.ts.map +1 -0
  227. package/dist/types/transaction.d.ts +1 -0
  228. package/dist/types/transaction.d.ts.map +1 -0
  229. package/dist/types/utils/index.d.ts +40 -21
  230. package/dist/types/utils/index.d.ts.map +1 -0
  231. package/dist/types/utils/index.js +0 -1
  232. package/dist/types/utils/index.js.map +1 -1
  233. package/dist/utils/actions/cancel-item-fulfillment.d.ts +2 -0
  234. package/dist/utils/actions/cancel-item-fulfillment.d.ts.map +1 -0
  235. package/dist/utils/actions/cancel-item-fulfillment.js +34 -0
  236. package/dist/utils/actions/cancel-item-fulfillment.js.map +1 -0
  237. package/dist/utils/actions/cancel-return.d.ts +1 -0
  238. package/dist/utils/actions/cancel-return.d.ts.map +1 -0
  239. package/dist/utils/actions/cancel-return.js +6 -10
  240. package/dist/utils/actions/cancel-return.js.map +1 -1
  241. package/dist/utils/actions/fulfill-item.d.ts +1 -0
  242. package/dist/utils/actions/fulfill-item.d.ts.map +1 -0
  243. package/dist/utils/actions/fulfill-item.js +6 -10
  244. package/dist/utils/actions/fulfill-item.js.map +1 -1
  245. package/dist/utils/actions/index.d.ts +4 -1
  246. package/dist/utils/actions/index.d.ts.map +1 -0
  247. package/dist/utils/actions/index.js +3 -1
  248. package/dist/utils/actions/index.js.map +1 -1
  249. package/dist/utils/actions/item-add.d.ts +1 -0
  250. package/dist/utils/actions/item-add.d.ts.map +1 -0
  251. package/dist/utils/actions/item-add.js +15 -24
  252. package/dist/utils/actions/item-add.js.map +1 -1
  253. package/dist/utils/actions/item-remove.d.ts +1 -0
  254. package/dist/utils/actions/item-remove.d.ts.map +1 -0
  255. package/dist/utils/actions/item-remove.js +8 -22
  256. package/dist/utils/actions/item-remove.js.map +1 -1
  257. package/dist/utils/actions/receive-damaged-return-item.d.ts +1 -0
  258. package/dist/utils/actions/receive-damaged-return-item.d.ts.map +1 -0
  259. package/dist/utils/actions/receive-damaged-return-item.js +9 -35
  260. package/dist/utils/actions/receive-damaged-return-item.js.map +1 -1
  261. package/dist/utils/actions/receive-return-item.d.ts +1 -0
  262. package/dist/utils/actions/receive-return-item.d.ts.map +1 -0
  263. package/dist/utils/actions/receive-return-item.js +7 -36
  264. package/dist/utils/actions/receive-return-item.js.map +1 -1
  265. package/dist/utils/actions/reinstate-item.d.ts +2 -0
  266. package/dist/utils/actions/reinstate-item.d.ts.map +1 -0
  267. package/dist/utils/actions/reinstate-item.js +32 -0
  268. package/dist/utils/actions/reinstate-item.js.map +1 -0
  269. package/dist/utils/actions/return-item.d.ts +1 -0
  270. package/dist/utils/actions/return-item.d.ts.map +1 -0
  271. package/dist/utils/actions/return-item.js +8 -12
  272. package/dist/utils/actions/return-item.js.map +1 -1
  273. package/dist/utils/actions/ship-item.d.ts +1 -0
  274. package/dist/utils/actions/ship-item.d.ts.map +1 -0
  275. package/dist/utils/actions/ship-item.js +6 -10
  276. package/dist/utils/actions/ship-item.js.map +1 -1
  277. package/dist/utils/actions/shipping-add.d.ts +1 -0
  278. package/dist/utils/actions/shipping-add.d.ts.map +1 -0
  279. package/dist/utils/actions/shipping-add.js +16 -16
  280. package/dist/utils/actions/shipping-add.js.map +1 -1
  281. package/dist/utils/actions/shipping-remove.d.ts +2 -0
  282. package/dist/utils/actions/shipping-remove.d.ts.map +1 -0
  283. package/dist/utils/actions/shipping-remove.js +25 -0
  284. package/dist/utils/actions/shipping-remove.js.map +1 -0
  285. package/dist/utils/actions/write-off-item.d.ts +1 -0
  286. package/dist/utils/actions/write-off-item.d.ts.map +1 -0
  287. package/dist/utils/actions/write-off-item.js +6 -10
  288. package/dist/utils/actions/write-off-item.js.map +1 -1
  289. package/dist/utils/apply-order-changes.d.ts +18 -0
  290. package/dist/utils/apply-order-changes.d.ts.map +1 -0
  291. package/dist/utils/apply-order-changes.js +95 -0
  292. package/dist/utils/apply-order-changes.js.map +1 -0
  293. package/dist/utils/base-repository-find.d.ts +3 -0
  294. package/dist/utils/base-repository-find.d.ts.map +1 -0
  295. package/dist/utils/base-repository-find.js +142 -0
  296. package/dist/utils/base-repository-find.js.map +1 -0
  297. package/dist/utils/calculate-order-change.d.ts +11 -5
  298. package/dist/utils/calculate-order-change.d.ts.map +1 -0
  299. package/dist/utils/calculate-order-change.js +58 -183
  300. package/dist/utils/calculate-order-change.js.map +1 -1
  301. package/dist/utils/index.d.ts +4 -1
  302. package/dist/utils/index.d.ts.map +1 -0
  303. package/dist/utils/index.js +3 -1
  304. package/dist/utils/index.js.map +1 -1
  305. package/dist/utils/set-action-reference.d.ts +2 -0
  306. package/dist/utils/set-action-reference.d.ts.map +1 -0
  307. package/dist/utils/set-action-reference.js +11 -0
  308. package/dist/utils/set-action-reference.js.map +1 -0
  309. package/dist/utils/transform-order.d.ts +4 -2
  310. package/dist/utils/transform-order.d.ts.map +1 -0
  311. package/dist/utils/transform-order.js +131 -17
  312. package/dist/utils/transform-order.js.map +1 -1
  313. package/package.json +8 -14
  314. package/dist/joiner-config.d.ts +0 -5
  315. package/dist/joiner-config.js +0 -36
  316. package/dist/joiner-config.js.map +0 -1
  317. package/dist/module-definition.d.ts +0 -2
  318. package/dist/module-definition.js +0 -59
  319. package/dist/module-definition.js.map +0 -1
  320. package/dist/scripts/bin/run-seed.d.ts +0 -3
  321. package/dist/scripts/bin/run-seed.js +0 -49
  322. package/dist/scripts/bin/run-seed.js.map +0 -1
  323. package/dist/services/order-change-service.d.ts +0 -15
  324. package/dist/services/order-change-service.js +0 -96
  325. package/dist/services/order-change-service.js.map +0 -1
  326. package/dist/utils/action-key.d.ts +0 -13
  327. package/dist/utils/action-key.js +0 -18
  328. package/dist/utils/action-key.js.map +0 -1
  329. package/dist/utils/actions/cancel.d.ts +0 -1
  330. package/dist/utils/actions/cancel.js +0 -8
  331. package/dist/utils/actions/cancel.js.map +0 -1
@@ -1,27 +1,33 @@
1
- import { Context, DAL, FindConfig, InternalModuleDeclaration, IOrderModuleService, ModuleJoinerConfig, ModulesSdkTypes, OrderDTO, OrderTypes } from "@medusajs/types";
2
- import { ModulesSdkUtils } from "@medusajs/utils";
3
- import { Address, LineItem, LineItemAdjustment, LineItemTaxLine, Order, OrderChange, OrderChangeAction, OrderItem, OrderShippingMethod, OrderSummary, ShippingMethod, ShippingMethodAdjustment, ShippingMethodTaxLine, Transaction } from "../models";
4
- import { CreateOrderLineItemDTO, CreateOrderShippingMethodDTO } from "../types";
5
- import OrderChangeService from "./order-change-service";
1
+ import { Context, DAL, FindConfig, InternalModuleDeclaration, IOrderModuleService, ModulesSdkTypes, OrderDTO, OrderTypes, RestoreReturn, SoftDeleteReturn } from "@medusajs/types";
2
+ import { Address, LineItem, LineItemAdjustment, LineItemTaxLine, Order, OrderChange, OrderChangeAction, OrderClaim, OrderExchange, OrderItem, OrderShippingMethod, OrderSummary, Return, ReturnItem, ReturnReason, ShippingMethod, ShippingMethodAdjustment, ShippingMethodTaxLine, Transaction } from "../models";
3
+ import { CreateOrderChangeDTO, CreateOrderLineItemDTO, CreateOrderShippingMethodDTO } from "../types";
6
4
  import OrderService from "./order-service";
7
5
  type InjectedDependencies = {
8
6
  baseRepository: DAL.RepositoryService;
9
- orderService: OrderService<any>;
10
- addressService: ModulesSdkTypes.InternalModuleService<any>;
11
- lineItemService: ModulesSdkTypes.InternalModuleService<any>;
12
- shippingMethodAdjustmentService: ModulesSdkTypes.InternalModuleService<any>;
13
- shippingMethodService: ModulesSdkTypes.InternalModuleService<any>;
14
- lineItemAdjustmentService: ModulesSdkTypes.InternalModuleService<any>;
15
- lineItemTaxLineService: ModulesSdkTypes.InternalModuleService<any>;
16
- shippingMethodTaxLineService: ModulesSdkTypes.InternalModuleService<any>;
17
- transactionService: ModulesSdkTypes.InternalModuleService<any>;
18
- orderChangeService: OrderChangeService<any>;
19
- orderChangeActionService: ModulesSdkTypes.InternalModuleService<any>;
20
- orderItemService: ModulesSdkTypes.InternalModuleService<any>;
21
- orderSummaryService: ModulesSdkTypes.InternalModuleService<any>;
22
- orderShippingMethodService: ModulesSdkTypes.InternalModuleService<any>;
7
+ orderService: OrderService;
8
+ addressService: ModulesSdkTypes.IMedusaInternalService<any>;
9
+ lineItemService: ModulesSdkTypes.IMedusaInternalService<any>;
10
+ shippingMethodAdjustmentService: ModulesSdkTypes.IMedusaInternalService<any>;
11
+ shippingMethodService: ModulesSdkTypes.IMedusaInternalService<any>;
12
+ lineItemAdjustmentService: ModulesSdkTypes.IMedusaInternalService<any>;
13
+ lineItemTaxLineService: ModulesSdkTypes.IMedusaInternalService<any>;
14
+ shippingMethodTaxLineService: ModulesSdkTypes.IMedusaInternalService<any>;
15
+ transactionService: ModulesSdkTypes.IMedusaInternalService<any>;
16
+ orderChangeService: ModulesSdkTypes.IMedusaInternalService<any>;
17
+ orderChangeActionService: ModulesSdkTypes.IMedusaInternalService<any>;
18
+ orderItemService: ModulesSdkTypes.IMedusaInternalService<any>;
19
+ orderSummaryService: ModulesSdkTypes.IMedusaInternalService<any>;
20
+ orderShippingMethodService: ModulesSdkTypes.IMedusaInternalService<any>;
21
+ returnReasonService: ModulesSdkTypes.IMedusaInternalService<any>;
22
+ returnService: ModulesSdkTypes.IMedusaInternalService<any>;
23
+ returnItemService: ModulesSdkTypes.IMedusaInternalService<any>;
24
+ orderClaimService: ModulesSdkTypes.IMedusaInternalService<any>;
25
+ orderExchangeService: ModulesSdkTypes.IMedusaInternalService<any>;
23
26
  };
24
- declare const OrderModuleService_base: new (container: InjectedDependencies) => ModulesSdkUtils.AbstractModuleService<InjectedDependencies, OrderDTO, {
27
+ declare const OrderModuleService_base: import("@medusajs/utils/dist/modules-sdk/types/medusa-service").MedusaServiceReturnType<{
28
+ Order: {
29
+ dto: OrderTypes.OrderDTO;
30
+ };
25
31
  Address: {
26
32
  dto: OrderTypes.OrderAddressDTO;
27
33
  };
@@ -43,9 +49,6 @@ declare const OrderModuleService_base: new (container: InjectedDependencies) =>
43
49
  ShippingMethodTaxLine: {
44
50
  dto: OrderTypes.OrderShippingMethodTaxLineDTO;
45
51
  };
46
- Transaction: {
47
- dto: OrderTypes.OrderTransactionDTO;
48
- };
49
52
  OrderChange: {
50
53
  dto: OrderTypes.OrderChangeDTO;
51
54
  };
@@ -55,44 +58,75 @@ declare const OrderModuleService_base: new (container: InjectedDependencies) =>
55
58
  OrderItem: {
56
59
  dto: OrderTypes.OrderItemDTO;
57
60
  };
61
+ OrderShippingMethod: {
62
+ dto: OrderShippingMethod;
63
+ };
64
+ ReturnReason: {
65
+ dto: OrderTypes.OrderReturnReasonDTO;
66
+ };
58
67
  OrderSummary: {
59
68
  dto: OrderTypes.OrderSummaryDTO;
60
69
  };
61
- OrderShippingMethod: {
62
- dto: OrderShippingMethod;
70
+ Transaction: {
71
+ dto: OrderTypes.OrderTransactionDTO;
72
+ };
73
+ Return: {
74
+ dto: any;
75
+ };
76
+ ReturnItem: {
77
+ dto: any;
78
+ };
79
+ OrderClaim: {
80
+ dto: any;
81
+ };
82
+ OrderExchange: {
83
+ dto: any;
63
84
  };
64
85
  }>;
65
- export default class OrderModuleService<TOrder extends Order = Order, TAddress extends Address = Address, TLineItem extends LineItem = LineItem, TLineItemAdjustment extends LineItemAdjustment = LineItemAdjustment, TLineItemTaxLine extends LineItemTaxLine = LineItemTaxLine, TShippingMethodAdjustment extends ShippingMethodAdjustment = ShippingMethodAdjustment, TShippingMethodTaxLine extends ShippingMethodTaxLine = ShippingMethodTaxLine, TShippingMethod extends ShippingMethod = ShippingMethod, TTransaction extends Transaction = Transaction, TOrderChange extends OrderChange = OrderChange, TOrderChangeAction extends OrderChangeAction = OrderChangeAction, TOrderItem extends OrderItem = OrderItem, TOrderSummary extends OrderSummary = OrderSummary, TOrderShippingMethod extends OrderShippingMethod = OrderShippingMethod> extends OrderModuleService_base implements IOrderModuleService {
86
+ export default class OrderModuleService<TOrder extends Order = Order, TAddress extends Address = Address, TLineItem extends LineItem = LineItem, TLineItemAdjustment extends LineItemAdjustment = LineItemAdjustment, TLineItemTaxLine extends LineItemTaxLine = LineItemTaxLine, TShippingMethodAdjustment extends ShippingMethodAdjustment = ShippingMethodAdjustment, TShippingMethodTaxLine extends ShippingMethodTaxLine = ShippingMethodTaxLine, TShippingMethod extends ShippingMethod = ShippingMethod, TTransaction extends Transaction = Transaction, TOrderChange extends OrderChange = OrderChange, TOrderChangeAction extends OrderChangeAction = OrderChangeAction, TOrderItem extends OrderItem = OrderItem, TOrderSummary extends OrderSummary = OrderSummary, TOrderShippingMethod extends OrderShippingMethod = OrderShippingMethod, TReturnReason extends ReturnReason = ReturnReason, TReturn extends Return = Return, TReturnItem extends ReturnItem = ReturnItem, TClaim extends OrderClaim = OrderClaim, TExchange extends OrderExchange = OrderExchange> extends OrderModuleService_base implements IOrderModuleService {
66
87
  protected readonly moduleDeclaration: InternalModuleDeclaration;
67
88
  protected baseRepository_: DAL.RepositoryService;
68
- protected orderService_: OrderService<TOrder>;
69
- protected addressService_: ModulesSdkTypes.InternalModuleService<TAddress>;
70
- protected lineItemService_: ModulesSdkTypes.InternalModuleService<TLineItem>;
71
- protected shippingMethodAdjustmentService_: ModulesSdkTypes.InternalModuleService<TShippingMethodAdjustment>;
72
- protected shippingMethodService_: ModulesSdkTypes.InternalModuleService<TShippingMethod>;
73
- protected lineItemAdjustmentService_: ModulesSdkTypes.InternalModuleService<TLineItemAdjustment>;
74
- protected lineItemTaxLineService_: ModulesSdkTypes.InternalModuleService<TLineItemTaxLine>;
75
- protected shippingMethodTaxLineService_: ModulesSdkTypes.InternalModuleService<TShippingMethodTaxLine>;
76
- protected transactionService_: ModulesSdkTypes.InternalModuleService<TTransaction>;
77
- protected orderChangeService_: OrderChangeService<TOrderChange>;
78
- protected orderChangeActionService_: ModulesSdkTypes.InternalModuleService<TOrderChangeAction>;
79
- protected orderItemService_: ModulesSdkTypes.InternalModuleService<TOrderItem>;
80
- protected orderSummaryService_: ModulesSdkTypes.InternalModuleService<TOrderSummary>;
81
- protected orderShippingMethodService_: ModulesSdkTypes.InternalModuleService<TOrderShippingMethod>;
82
- constructor({ baseRepository, orderService, addressService, lineItemService, shippingMethodAdjustmentService, shippingMethodService, lineItemAdjustmentService, shippingMethodTaxLineService, lineItemTaxLineService, transactionService, orderChangeService, orderChangeActionService, orderItemService, orderSummaryService, orderShippingMethodService, }: InjectedDependencies, moduleDeclaration: InternalModuleDeclaration);
83
- __joinerConfig(): ModuleJoinerConfig;
89
+ protected orderService_: OrderService;
90
+ protected addressService_: ModulesSdkTypes.IMedusaInternalService<TAddress>;
91
+ protected lineItemService_: ModulesSdkTypes.IMedusaInternalService<TLineItem>;
92
+ protected shippingMethodAdjustmentService_: ModulesSdkTypes.IMedusaInternalService<TShippingMethodAdjustment>;
93
+ protected shippingMethodService_: ModulesSdkTypes.IMedusaInternalService<TShippingMethod>;
94
+ protected lineItemAdjustmentService_: ModulesSdkTypes.IMedusaInternalService<TLineItemAdjustment>;
95
+ protected lineItemTaxLineService_: ModulesSdkTypes.IMedusaInternalService<TLineItemTaxLine>;
96
+ protected shippingMethodTaxLineService_: ModulesSdkTypes.IMedusaInternalService<TShippingMethodTaxLine>;
97
+ protected transactionService_: ModulesSdkTypes.IMedusaInternalService<TTransaction>;
98
+ protected orderChangeService_: ModulesSdkTypes.IMedusaInternalService<TOrderChange>;
99
+ protected orderChangeActionService_: ModulesSdkTypes.IMedusaInternalService<TOrderChangeAction>;
100
+ protected orderItemService_: ModulesSdkTypes.IMedusaInternalService<TOrderItem>;
101
+ protected orderSummaryService_: ModulesSdkTypes.IMedusaInternalService<TOrderSummary>;
102
+ protected orderShippingMethodService_: ModulesSdkTypes.IMedusaInternalService<TOrderShippingMethod>;
103
+ protected returnReasonService_: ModulesSdkTypes.IMedusaInternalService<TReturnReason>;
104
+ protected returnService_: ModulesSdkTypes.IMedusaInternalService<TReturn>;
105
+ protected returnItemService_: ModulesSdkTypes.IMedusaInternalService<TReturnItem>;
106
+ protected orderClaimService_: ModulesSdkTypes.IMedusaInternalService<TClaim>;
107
+ protected orderExchangeService_: ModulesSdkTypes.IMedusaInternalService<TExchange>;
108
+ constructor({ baseRepository, orderService, addressService, lineItemService, shippingMethodAdjustmentService, shippingMethodService, lineItemAdjustmentService, shippingMethodTaxLineService, lineItemTaxLineService, transactionService, orderChangeService, orderChangeActionService, orderItemService, orderSummaryService, orderShippingMethodService, returnReasonService, returnService, returnItemService, orderClaimService, orderExchangeService, }: InjectedDependencies, moduleDeclaration: InternalModuleDeclaration);
84
109
  private shouldIncludeTotals;
85
110
  private addRelationsToCalculateTotals;
86
- retrieve(id: string, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<OrderTypes.OrderDTO>;
87
- list(filters?: any, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<OrderTypes.OrderDTO[]>;
88
- listAndCount(filters?: any, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<[OrderTypes.OrderDTO[], number]>;
89
- create(data: OrderTypes.CreateOrderDTO[], sharedContext?: Context): Promise<OrderTypes.OrderDTO[]>;
90
- create(data: OrderTypes.CreateOrderDTO, sharedContext?: Context): Promise<OrderTypes.OrderDTO>;
91
- protected create_(data: OrderTypes.CreateOrderDTO[], sharedContext?: Context): Promise<Order[]>;
92
- update(data: OrderTypes.UpdateOrderDTO[]): Promise<OrderTypes.OrderDTO[]>;
93
- update(orderId: string, data: OrderTypes.UpdateOrderDTO, sharedContext?: Context): Promise<OrderTypes.OrderDTO>;
94
- update(selector: Partial<OrderTypes.FilterableOrderProps>, data: OrderTypes.UpdateOrderDTO, sharedContext?: Context): Promise<OrderTypes.OrderDTO[]>;
95
- protected update_(dataOrIdOrSelector: OrderTypes.UpdateOrderDTO[] | string | Partial<OrderTypes.FilterableOrderProps>, data?: OrderTypes.UpdateOrderDTO, sharedContext?: Context): Promise<TOrder[]>;
111
+ retrieveOrder(id: string, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<OrderTypes.OrderDTO>;
112
+ listOrders(filters?: any, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<OrderTypes.OrderDTO[]>;
113
+ listAndCountOrders(filters?: any, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<[OrderTypes.OrderDTO[], number]>;
114
+ retrieveReturn(id: string, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<OrderTypes.ReturnDTO>;
115
+ listReturns(filters?: any, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<OrderTypes.ReturnDTO[]>;
116
+ listAndCountReturns(filters?: any, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<[OrderTypes.ReturnDTO[], number]>;
117
+ retrieveOrderClaim(id: string, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<OrderTypes.OrderClaimDTO>;
118
+ listOrderClaims(filters?: any, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<OrderTypes.OrderClaimDTO[]>;
119
+ listAndCountOrderClaims(filters?: any, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<[OrderTypes.OrderClaimDTO[], number]>;
120
+ retrieveOrderExchange(id: string, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<OrderTypes.OrderExchangeDTO>;
121
+ listOrderExchanges(filters?: any, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<OrderTypes.OrderExchangeDTO[]>;
122
+ listAndCountOrderExchanges(filters?: any, config?: FindConfig<any> | undefined, sharedContext?: Context | undefined): Promise<[OrderTypes.OrderExchangeDTO[], number]>;
123
+ createOrders(data: OrderTypes.CreateOrderDTO[], sharedContext?: Context): Promise<OrderTypes.OrderDTO[]>;
124
+ createOrders(data: OrderTypes.CreateOrderDTO, sharedContext?: Context): Promise<OrderTypes.OrderDTO>;
125
+ protected createOrders_(data: OrderTypes.CreateOrderDTO[], sharedContext?: Context): Promise<Order[]>;
126
+ updateOrders(data: OrderTypes.UpdateOrderDTO[]): Promise<OrderTypes.OrderDTO[]>;
127
+ updateOrders(orderId: string, data: OrderTypes.UpdateOrderDTO, sharedContext?: Context): Promise<OrderTypes.OrderDTO>;
128
+ updateOrders(selector: Partial<OrderTypes.FilterableOrderProps>, data: OrderTypes.UpdateOrderDTO, sharedContext?: Context): Promise<OrderTypes.OrderDTO[]>;
129
+ protected updateOrders_(dataOrIdOrSelector: OrderTypes.UpdateOrderDTO[] | string | Partial<OrderTypes.FilterableOrderProps>, data?: OrderTypes.UpdateOrderDTO, sharedContext?: Context): Promise<Order[]>;
96
130
  createLineItems(data: OrderTypes.CreateOrderLineItemForOrderDTO): Promise<OrderTypes.OrderLineItemDTO[]>;
97
131
  createLineItems(data: OrderTypes.CreateOrderLineItemForOrderDTO[]): Promise<OrderTypes.OrderLineItemDTO[]>;
98
132
  createLineItems(orderId: string, items: OrderTypes.CreateOrderLineItemDTO[], sharedContext?: Context): Promise<OrderTypes.OrderLineItemDTO[]>;
@@ -109,10 +143,10 @@ export default class OrderModuleService<TOrder extends Order = Order, TAddress e
109
143
  protected updateOrderItemWithSelector_(updates: OrderTypes.UpdateOrderItemWithSelectorDTO[], sharedContext?: Context): Promise<OrderItem[]>;
110
144
  createAddresses(data: OrderTypes.CreateOrderAddressDTO, sharedContext?: Context): Promise<OrderTypes.OrderAddressDTO>;
111
145
  createAddresses(data: OrderTypes.CreateOrderAddressDTO[], sharedContext?: Context): Promise<OrderTypes.OrderAddressDTO[]>;
112
- protected createAddresses_(data: OrderTypes.CreateOrderAddressDTO[], sharedContext?: Context): Promise<TAddress[]>;
146
+ protected createAddresses_(data: OrderTypes.CreateOrderAddressDTO[], sharedContext?: Context): Promise<import("@medusajs/types").InferEntityType<TAddress>[]>;
113
147
  updateAddresses(data: OrderTypes.UpdateOrderAddressDTO, sharedContext?: Context): Promise<OrderTypes.OrderAddressDTO>;
114
148
  updateAddresses(data: OrderTypes.UpdateOrderAddressDTO[], sharedContext?: Context): Promise<OrderTypes.OrderAddressDTO[]>;
115
- protected updateAddresses_(data: OrderTypes.UpdateOrderAddressDTO[], sharedContext?: Context): Promise<TAddress[]>;
149
+ protected updateAddresses_(data: OrderTypes.UpdateOrderAddressDTO[], sharedContext?: Context): Promise<import("@medusajs/types").InferEntityType<TAddress>[]>;
116
150
  createShippingMethods(data: OrderTypes.CreateOrderShippingMethodDTO): Promise<OrderTypes.OrderShippingMethodDTO>;
117
151
  createShippingMethods(data: OrderTypes.CreateOrderShippingMethodDTO[]): Promise<OrderTypes.OrderShippingMethodDTO[]>;
118
152
  createShippingMethods(orderId: string, methods: OrderTypes.CreateOrderShippingMethodDTO[], sharedContext?: Context): Promise<OrderTypes.OrderShippingMethodDTO[]>;
@@ -122,6 +156,8 @@ export default class OrderModuleService<TOrder extends Order = Order, TAddress e
122
156
  order_id: string;
123
157
  version: number;
124
158
  }[], sharedContext?: Context): Promise<ShippingMethod[]>;
159
+ softDeleteShippingMethods<TReturnableLinkableKeys extends string>(ids: string | object | string[] | object[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
160
+ restoreShippingMethods<TReturnableLinkableKeys extends string>(transactionIds: string | object | string[] | object[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
125
161
  createLineItemAdjustments(adjustments: OrderTypes.CreateOrderLineItemAdjustmentDTO[]): Promise<OrderTypes.OrderLineItemAdjustmentDTO[]>;
126
162
  createLineItemAdjustments(adjustment: OrderTypes.CreateOrderLineItemAdjustmentDTO): Promise<OrderTypes.OrderLineItemAdjustmentDTO[]>;
127
163
  createLineItemAdjustments(orderId: string, adjustments: OrderTypes.CreateOrderLineItemAdjustmentDTO[], sharedContext?: Context): Promise<OrderTypes.OrderLineItemAdjustmentDTO[]>;
@@ -138,30 +174,65 @@ export default class OrderModuleService<TOrder extends Order = Order, TAddress e
138
174
  createShippingMethodTaxLines(taxLine: OrderTypes.CreateOrderShippingMethodTaxLineDTO): Promise<OrderTypes.OrderShippingMethodTaxLineDTO>;
139
175
  createShippingMethodTaxLines(orderId: string, taxLines: OrderTypes.CreateOrderShippingMethodTaxLineDTO[] | OrderTypes.CreateOrderShippingMethodTaxLineDTO, sharedContext?: Context): Promise<OrderTypes.OrderShippingMethodTaxLineDTO[]>;
140
176
  setShippingMethodTaxLines(orderId: string, taxLines: (OrderTypes.CreateOrderShippingMethodTaxLineDTO | OrderTypes.UpdateOrderShippingMethodTaxLineDTO)[], sharedContext?: Context): Promise<OrderTypes.OrderShippingMethodTaxLineDTO[]>;
141
- createOrderChange(data: OrderTypes.CreateOrderChangeDTO, sharedContext?: Context): Promise<OrderTypes.OrderChangeDTO>;
142
- createOrderChange(data: OrderTypes.CreateOrderChangeDTO[], sharedContext?: Context): Promise<OrderTypes.OrderChangeDTO[]>;
143
- protected createOrderChange_(data: OrderTypes.CreateOrderChangeDTO | OrderTypes.CreateOrderChangeDTO[], sharedContext?: Context): Promise<OrderChange[]>;
177
+ createReturns(data: OrderTypes.CreateOrderReturnDTO, sharedContext?: Context): Promise<OrderTypes.ReturnDTO>;
178
+ createReturns(data: OrderTypes.CreateOrderReturnDTO[], sharedContext?: Context): Promise<OrderTypes.ReturnDTO[]>;
179
+ createOrderClaims(data: OrderTypes.CreateOrderClaimDTO, sharedContext?: Context): Promise<OrderTypes.OrderClaimDTO>;
180
+ createOrderClaims(data: OrderTypes.CreateOrderClaimDTO[], sharedContext?: Context): Promise<OrderTypes.OrderClaimDTO[]>;
181
+ createOrderExchanges(data: OrderTypes.CreateOrderExchangeDTO, sharedContext?: Context): Promise<OrderTypes.OrderExchangeDTO>;
182
+ createOrderExchanges(data: OrderTypes.CreateOrderExchangeDTO[], sharedContext?: Context): Promise<OrderTypes.OrderExchangeDTO[]>;
183
+ private createOrderRelatedEntity_;
184
+ createOrderChange(data: CreateOrderChangeDTO, sharedContext?: Context): Promise<OrderTypes.OrderChangeDTO>;
185
+ createOrderChange(data: CreateOrderChangeDTO[], sharedContext?: Context): Promise<OrderTypes.OrderChangeDTO[]>;
186
+ protected createOrderChange_(data: CreateOrderChangeDTO | CreateOrderChangeDTO[], sharedContext?: Context): Promise<OrderChange[]>;
187
+ previewOrderChange(orderId: string, sharedContext?: Context): Promise<any>;
144
188
  cancelOrderChange(orderId: string, sharedContext?: Context): Promise<void>;
145
189
  cancelOrderChange(orderId: string[], sharedContext?: Context): Promise<void>;
146
190
  cancelOrderChange(data: OrderTypes.CancelOrderChangeDTO, sharedContext?: Context): Promise<void>;
147
191
  cancelOrderChange(data: OrderTypes.CancelOrderChangeDTO[], sharedContext?: Context): Promise<void>;
148
- confirmOrderChange(orderChangeId: string, sharedContext?: Context): Promise<void>;
149
- confirmOrderChange(orderChangeId: string[], sharedContext?: Context): Promise<void>;
150
- confirmOrderChange(data: OrderTypes.ConfirmOrderChangeDTO, sharedContext?: Context): Promise<void>;
151
- confirmOrderChange(data: OrderTypes.ConfirmOrderChangeDTO[], sharedContext?: Context): Promise<void>;
152
- declineOrderChange(orderChangeId: string, sharedContext?: Context): Promise<void>;
153
- declineOrderChange(orderChangeId: string[], sharedContext?: Context): Promise<void>;
154
- declineOrderChange(data: OrderTypes.DeclineOrderChangeDTO, sharedContext?: Context): Promise<void>;
155
- declineOrderChange(data: OrderTypes.DeclineOrderChangeDTO[], sharedContext?: Context): Promise<void>;
156
- applyPendingOrderActions(orderId: string | string[], sharedContext?: Context): Promise<void>;
192
+ confirmOrderChange(orderChangeId: string, sharedContext?: Context): any;
193
+ confirmOrderChange(orderChangeId: string[], sharedContext?: Context): any;
194
+ confirmOrderChange(data: OrderTypes.ConfirmOrderChangeDTO, sharedContext?: Context): any;
195
+ confirmOrderChange(data: OrderTypes.ConfirmOrderChangeDTO[], sharedContext?: Context): any;
196
+ declineOrderChange(orderChangeId: string, sharedContext?: Context): any;
197
+ declineOrderChange(orderChangeId: string[], sharedContext?: Context): any;
198
+ declineOrderChange(data: OrderTypes.DeclineOrderChangeDTO, sharedContext?: Context): any;
199
+ declineOrderChange(data: OrderTypes.DeclineOrderChangeDTO[], sharedContext?: Context): any;
200
+ applyPendingOrderActions(orderId: string | string[], sharedContext?: Context): Promise<OrderTypes.OrderChangeReturn>;
157
201
  revertLastVersion(orderId: string, sharedContext?: Context): Promise<void>;
158
202
  protected revertLastChange_(order: OrderDTO, sharedContext?: Context): Promise<void>;
203
+ private getActiveOrderChange_;
159
204
  private getAndValidateOrderChange_;
160
205
  addOrderAction(data: OrderTypes.CreateOrderChangeActionDTO, sharedContext?: Context): Promise<OrderTypes.OrderChangeActionDTO>;
161
206
  addOrderAction(data: OrderTypes.CreateOrderChangeActionDTO[], sharedContext?: Context): Promise<OrderTypes.OrderChangeActionDTO[]>;
162
207
  private applyOrderChanges_;
208
+ addTransactions(transactionData: OrderTypes.CreateOrderTransactionDTO, sharedContext?: Context): Promise<OrderTypes.OrderTransactionDTO>;
209
+ addTransactions(transactionData: OrderTypes.CreateOrderTransactionDTO[], sharedContext?: Context): Promise<OrderTypes.OrderTransactionDTO[]>;
210
+ deleteTransactions(transactionIds: string | object | string[] | object[], sharedContext?: Context): Promise<void>;
211
+ softDeleteTransactions<TReturnableLinkableKeys extends string>(transactionIds: string | object | string[] | object[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
212
+ restoreTransactions<TReturnableLinkableKeys extends string>(transactionIds: string | object | string[] | object[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
213
+ private updateOrderPaidRefundableAmount_;
214
+ archive(orderId: string, sharedContext?: Context): Promise<OrderTypes.OrderDTO>;
215
+ archive(orderId: string[], sharedContext?: Context): Promise<OrderTypes.OrderDTO[]>;
216
+ completeOrder(orderId: string, sharedContext?: Context): Promise<OrderTypes.OrderDTO>;
217
+ completeOrder(orderId: string[], sharedContext?: Context): Promise<OrderTypes.OrderDTO[]>;
218
+ cancel(orderId: string, sharedContext?: Context): Promise<OrderTypes.OrderDTO>;
219
+ cancel(orderId: string[], sharedContext?: Context): Promise<OrderTypes.OrderDTO[]>;
220
+ createReturn(data: OrderTypes.CreateOrderReturnDTO, sharedContext?: Context): Promise<OrderTypes.ReturnDTO>;
221
+ receiveReturn(data: OrderTypes.ReceiveOrderReturnDTO, sharedContext?: Context): Promise<OrderTypes.ReturnDTO>;
222
+ private receiveReturn_;
223
+ cancelReturn(data: OrderTypes.CancelOrderReturnDTO, sharedContext?: Context): Promise<OrderTypes.ReturnDTO>;
224
+ private cancelReturn_;
225
+ createClaim(data: OrderTypes.CreateOrderClaimDTO, sharedContext?: Context): Promise<OrderTypes.OrderClaimDTO>;
226
+ createClaim_(data: OrderTypes.CreateOrderClaimDTO, sharedContext?: Context): Promise<any>;
227
+ cancelClaim(data: OrderTypes.CancelOrderClaimDTO, sharedContext?: Context): Promise<OrderTypes.OrderClaimDTO>;
228
+ private cancelClaim_;
229
+ createExchange(data: OrderTypes.CreateOrderExchangeDTO, sharedContext?: Context): Promise<OrderTypes.OrderExchangeDTO>;
230
+ createExchange_(data: OrderTypes.CreateOrderExchangeDTO, sharedContext?: Context): Promise<any>;
231
+ cancelExchange(data: OrderTypes.CancelOrderExchangeDTO, sharedContext?: Context): Promise<OrderTypes.OrderExchangeDTO>;
232
+ private cancelExchange_;
163
233
  registerFulfillment(data: OrderTypes.RegisterOrderFulfillmentDTO, sharedContext?: Context): Promise<void>;
234
+ cancelFulfillment(data: OrderTypes.CancelOrderFulfillmentDTO, sharedContext?: Context): Promise<void>;
164
235
  registerShipment(data: OrderTypes.RegisterOrderShipmentDTO, sharedContext?: Context): Promise<void>;
165
- createReturn(data: OrderTypes.CreateOrderReturnDTO, sharedContext?: Context): Promise<void>;
166
236
  }
167
237
  export {};
238
+ //# sourceMappingURL=order-module-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-module-service.d.ts","sourceRoot":"","sources":["../../src/services/order-module-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EACP,GAAG,EACH,UAAU,EACV,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,QAAQ,EACR,UAAU,EACV,aAAa,EACb,gBAAgB,EAEjB,MAAM,iBAAiB,CAAA;AAqBxB,OAAO,EACL,OAAO,EACP,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,KAAK,EACL,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,YAAY,EACZ,MAAM,EACN,UAAU,EACV,YAAY,EACZ,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,WAAW,EACZ,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,oBAAoB,EAE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