@medusajs/order 0.1.3-snapshot-20240718073308 → 0.1.3

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 +8 -6
  2. package/dist/index.js +26 -4
  3. package/dist/index.js.map +1 -1
  4. package/dist/joiner-config.d.ts +5 -0
  5. package/dist/joiner-config.js +36 -0
  6. package/dist/joiner-config.js.map +1 -0
  7. package/dist/migrations/Migration20240219102530.d.ts +0 -1
  8. package/dist/migrations/Migration20240219102530.js +4 -38
  9. package/dist/migrations/Migration20240219102530.js.map +1 -1
  10. package/dist/models/address.d.ts +1 -2
  11. package/dist/models/adjustment-line.d.ts +1 -3
  12. package/dist/models/adjustment-line.js +0 -5
  13. package/dist/models/adjustment-line.js.map +1 -1
  14. package/dist/models/index.d.ts +0 -9
  15. package/dist/models/index.js +1 -17
  16. package/dist/models/index.js.map +1 -1
  17. package/dist/models/line-item-adjustment.d.ts +1 -3
  18. package/dist/models/line-item-adjustment.js +3 -3
  19. package/dist/models/line-item-adjustment.js.map +1 -1
  20. package/dist/models/line-item-tax-line.d.ts +1 -3
  21. package/dist/models/line-item-tax-line.js +3 -3
  22. package/dist/models/line-item-tax-line.js.map +1 -1
  23. package/dist/models/line-item.d.ts +1 -3
  24. package/dist/models/line-item.js +4 -18
  25. package/dist/models/line-item.js.map +1 -1
  26. package/dist/models/order-change-action.d.ts +4 -15
  27. package/dist/models/order-change-action.js +7 -102
  28. package/dist/models/order-change-action.js.map +1 -1
  29. package/dist/models/order-change.d.ts +5 -17
  30. package/dist/models/order-change.js +4 -109
  31. package/dist/models/order-change.js.map +1 -1
  32. package/dist/models/order-item.d.ts +4 -5
  33. package/dist/models/order-item.js +13 -13
  34. package/dist/models/order-item.js.map +1 -1
  35. package/dist/models/order-shipping-method.d.ts +4 -14
  36. package/dist/models/order-shipping-method.js +13 -89
  37. package/dist/models/order-shipping-method.js.map +1 -1
  38. package/dist/models/order-summary.d.ts +2 -6
  39. package/dist/models/order-summary.js +6 -9
  40. package/dist/models/order-summary.js.map +1 -1
  41. package/dist/models/order.d.ts +4 -6
  42. package/dist/models/order.js +1 -11
  43. package/dist/models/order.js.map +1 -1
  44. package/dist/models/shipping-method-adjustment.d.ts +1 -3
  45. package/dist/models/shipping-method-adjustment.js +3 -3
  46. package/dist/models/shipping-method-adjustment.js.map +1 -1
  47. package/dist/models/shipping-method-tax-line.d.ts +1 -3
  48. package/dist/models/shipping-method-tax-line.js +3 -3
  49. package/dist/models/shipping-method-tax-line.js.map +1 -1
  50. package/dist/models/shipping-method.d.ts +0 -2
  51. package/dist/models/shipping-method.js +4 -17
  52. package/dist/models/shipping-method.js.map +1 -1
  53. package/dist/models/tax-line.d.ts +0 -2
  54. package/dist/models/tax-line.js +0 -7
  55. package/dist/models/tax-line.js.map +1 -1
  56. package/dist/models/transaction.d.ts +3 -15
  57. package/dist/models/transaction.js +4 -109
  58. package/dist/models/transaction.js.map +1 -1
  59. package/dist/module-definition.d.ts +2 -0
  60. package/dist/module-definition.js +59 -0
  61. package/dist/module-definition.js.map +1 -0
  62. package/dist/repositories/index.d.ts +1 -4
  63. package/dist/repositories/index.js +16 -7
  64. package/dist/repositories/index.js.map +1 -1
  65. package/dist/repositories/order.d.ts +3 -1
  66. package/dist/repositories/order.js +85 -2
  67. package/dist/repositories/order.js.map +1 -1
  68. package/dist/scripts/bin/run-seed.d.ts +3 -0
  69. package/dist/scripts/bin/run-seed.js +49 -0
  70. package/dist/scripts/bin/run-seed.js.map +1 -0
  71. package/dist/services/index.d.ts +1 -1
  72. package/dist/services/index.js +3 -1
  73. package/dist/services/index.js.map +1 -1
  74. package/dist/services/order-change-service.d.ts +15 -0
  75. package/dist/services/order-change-service.js +96 -0
  76. package/dist/services/order-change-service.js.map +1 -0
  77. package/dist/services/order-module-service.d.ts +67 -138
  78. package/dist/services/order-module-service.js +240 -990
  79. package/dist/services/order-module-service.js.map +1 -1
  80. package/dist/services/order-service.d.ts +4 -5
  81. package/dist/services/order-service.js +1 -1
  82. package/dist/services/order-service.js.map +1 -1
  83. package/dist/types/address.d.ts +0 -1
  84. package/dist/types/index.d.ts +1 -3
  85. package/dist/types/index.js +0 -1
  86. package/dist/types/index.js.map +1 -1
  87. package/dist/types/line-item-adjustment.d.ts +0 -1
  88. package/dist/types/line-item-tax-line.d.ts +0 -1
  89. package/dist/types/line-item.d.ts +0 -1
  90. package/dist/types/order-detail.d.ts +1 -2
  91. package/dist/types/order.d.ts +2 -3
  92. package/dist/types/shipping-method-adjustment.d.ts +0 -1
  93. package/dist/types/shipping-method-tax-line.d.ts +0 -1
  94. package/dist/types/shipping-method.d.ts +0 -4
  95. package/dist/types/tax-line.d.ts +0 -1
  96. package/dist/types/transaction.d.ts +0 -1
  97. package/dist/types/utils/index.d.ts +11 -43
  98. package/dist/types/utils/index.js.map +1 -1
  99. package/dist/utils/action-key.d.ts +13 -0
  100. package/dist/utils/action-key.js +18 -0
  101. package/dist/utils/action-key.js.map +1 -0
  102. package/dist/utils/actions/cancel-return.d.ts +0 -1
  103. package/dist/utils/actions/cancel-return.js +6 -7
  104. package/dist/utils/actions/cancel-return.js.map +1 -1
  105. package/dist/utils/actions/cancel.d.ts +0 -1
  106. package/dist/utils/actions/cancel.js +2 -2
  107. package/dist/utils/actions/cancel.js.map +1 -1
  108. package/dist/utils/actions/fulfill-item.d.ts +0 -1
  109. package/dist/utils/actions/fulfill-item.js +6 -7
  110. package/dist/utils/actions/fulfill-item.js.map +1 -1
  111. package/dist/utils/actions/index.d.ts +0 -4
  112. package/dist/utils/actions/index.js +0 -3
  113. package/dist/utils/actions/index.js.map +1 -1
  114. package/dist/utils/actions/item-add.d.ts +0 -1
  115. package/dist/utils/actions/item-add.js +14 -17
  116. package/dist/utils/actions/item-add.js.map +1 -1
  117. package/dist/utils/actions/item-remove.d.ts +0 -1
  118. package/dist/utils/actions/item-remove.js +10 -11
  119. package/dist/utils/actions/item-remove.js.map +1 -1
  120. package/dist/utils/actions/receive-damaged-return-item.d.ts +0 -1
  121. package/dist/utils/actions/receive-damaged-return-item.js +7 -8
  122. package/dist/utils/actions/receive-damaged-return-item.js.map +1 -1
  123. package/dist/utils/actions/receive-return-item.d.ts +0 -1
  124. package/dist/utils/actions/receive-return-item.js +7 -8
  125. package/dist/utils/actions/receive-return-item.js.map +1 -1
  126. package/dist/utils/actions/return-item.d.ts +0 -1
  127. package/dist/utils/actions/return-item.js +8 -9
  128. package/dist/utils/actions/return-item.js.map +1 -1
  129. package/dist/utils/actions/ship-item.d.ts +0 -1
  130. package/dist/utils/actions/ship-item.js +6 -7
  131. package/dist/utils/actions/ship-item.js.map +1 -1
  132. package/dist/utils/actions/shipping-add.d.ts +0 -1
  133. package/dist/utils/actions/shipping-add.js +7 -16
  134. package/dist/utils/actions/shipping-add.js.map +1 -1
  135. package/dist/utils/actions/write-off-item.d.ts +0 -1
  136. package/dist/utils/actions/write-off-item.js +6 -7
  137. package/dist/utils/actions/write-off-item.js.map +1 -1
  138. package/dist/utils/calculate-order-change.d.ts +2 -11
  139. package/dist/utils/calculate-order-change.js +70 -68
  140. package/dist/utils/calculate-order-change.js.map +1 -1
  141. package/dist/utils/index.d.ts +1 -4
  142. package/dist/utils/index.js +1 -3
  143. package/dist/utils/index.js.map +1 -1
  144. package/dist/utils/transform-order.d.ts +2 -4
  145. package/dist/utils/transform-order.js +17 -131
  146. package/dist/utils/transform-order.js.map +1 -1
  147. package/package.json +14 -8
  148. package/dist/index.d.ts.map +0 -1
  149. package/dist/migrations/Migration20240219102530.d.ts.map +0 -1
  150. package/dist/migrations/Migration20240604100512.d.ts +0 -5
  151. package/dist/migrations/Migration20240604100512.d.ts.map +0 -1
  152. package/dist/migrations/Migration20240604100512.js +0 -364
  153. package/dist/migrations/Migration20240604100512.js.map +0 -1
  154. package/dist/migrations/Migration20240715102100.d.ts +0 -5
  155. package/dist/migrations/Migration20240715102100.d.ts.map +0 -1
  156. package/dist/migrations/Migration20240715102100.js +0 -15
  157. package/dist/migrations/Migration20240715102100.js.map +0 -1
  158. package/dist/migrations/Migration20240715174100.d.ts +0 -5
  159. package/dist/migrations/Migration20240715174100.d.ts.map +0 -1
  160. package/dist/migrations/Migration20240715174100.js +0 -21
  161. package/dist/migrations/Migration20240715174100.js.map +0 -1
  162. package/dist/migrations/Migration20240716081800.d.ts +0 -5
  163. package/dist/migrations/Migration20240716081800.d.ts.map +0 -1
  164. package/dist/migrations/Migration20240716081800.js +0 -67
  165. package/dist/migrations/Migration20240716081800.js.map +0 -1
  166. package/dist/models/address.d.ts.map +0 -1
  167. package/dist/models/adjustment-line.d.ts.map +0 -1
  168. package/dist/models/claim-item-image.d.ts +0 -19
  169. package/dist/models/claim-item-image.d.ts.map +0 -1
  170. package/dist/models/claim-item-image.js +0 -109
  171. package/dist/models/claim-item-image.js.map +0 -1
  172. package/dist/models/claim-item.d.ts +0 -29
  173. package/dist/models/claim-item.d.ts.map +0 -1
  174. package/dist/models/claim-item.js +0 -156
  175. package/dist/models/claim-item.js.map +0 -1
  176. package/dist/models/claim.d.ts +0 -36
  177. package/dist/models/claim.d.ts.map +0 -1
  178. package/dist/models/claim.js +0 -195
  179. package/dist/models/claim.js.map +0 -1
  180. package/dist/models/exchange-item.d.ts +0 -24
  181. package/dist/models/exchange-item.d.ts.map +0 -1
  182. package/dist/models/exchange-item.js +0 -138
  183. package/dist/models/exchange-item.js.map +0 -1
  184. package/dist/models/exchange.d.ts +0 -34
  185. package/dist/models/exchange.d.ts.map +0 -1
  186. package/dist/models/exchange.js +0 -188
  187. package/dist/models/exchange.js.map +0 -1
  188. package/dist/models/index.d.ts.map +0 -1
  189. package/dist/models/line-item-adjustment.d.ts.map +0 -1
  190. package/dist/models/line-item-tax-line.d.ts.map +0 -1
  191. package/dist/models/line-item.d.ts.map +0 -1
  192. package/dist/models/order-change-action.d.ts.map +0 -1
  193. package/dist/models/order-change.d.ts.map +0 -1
  194. package/dist/models/order-item.d.ts.map +0 -1
  195. package/dist/models/order-shipping-method.d.ts.map +0 -1
  196. package/dist/models/order-summary.d.ts.map +0 -1
  197. package/dist/models/order.d.ts.map +0 -1
  198. package/dist/models/return-item.d.ts +0 -29
  199. package/dist/models/return-item.d.ts.map +0 -1
  200. package/dist/models/return-item.js +0 -170
  201. package/dist/models/return-item.js.map +0 -1
  202. package/dist/models/return-reason.d.ts +0 -21
  203. package/dist/models/return-reason.d.ts.map +0 -1
  204. package/dist/models/return-reason.js +0 -120
  205. package/dist/models/return-reason.js.map +0 -1
  206. package/dist/models/return.d.ts +0 -39
  207. package/dist/models/return.d.ts.map +0 -1
  208. package/dist/models/return.js +0 -216
  209. package/dist/models/return.js.map +0 -1
  210. package/dist/models/shipping-method-adjustment.d.ts.map +0 -1
  211. package/dist/models/shipping-method-tax-line.d.ts.map +0 -1
  212. package/dist/models/shipping-method.d.ts.map +0 -1
  213. package/dist/models/tax-line.d.ts.map +0 -1
  214. package/dist/models/transaction.d.ts.map +0 -1
  215. package/dist/repositories/claim.d.ts +0 -9
  216. package/dist/repositories/claim.d.ts.map +0 -1
  217. package/dist/repositories/claim.js +0 -11
  218. package/dist/repositories/claim.js.map +0 -1
  219. package/dist/repositories/exchange.d.ts +0 -9
  220. package/dist/repositories/exchange.d.ts.map +0 -1
  221. package/dist/repositories/exchange.js +0 -11
  222. package/dist/repositories/exchange.js.map +0 -1
  223. package/dist/repositories/index.d.ts.map +0 -1
  224. package/dist/repositories/order.d.ts.map +0 -1
  225. package/dist/repositories/return.d.ts +0 -9
  226. package/dist/repositories/return.d.ts.map +0 -1
  227. package/dist/repositories/return.js +0 -11
  228. package/dist/repositories/return.js.map +0 -1
  229. package/dist/services/actions/cancel-claim.d.ts +0 -3
  230. package/dist/services/actions/cancel-claim.d.ts.map +0 -1
  231. package/dist/services/actions/cancel-claim.js +0 -107
  232. package/dist/services/actions/cancel-claim.js.map +0 -1
  233. package/dist/services/actions/cancel-exchange.d.ts +0 -3
  234. package/dist/services/actions/cancel-exchange.d.ts.map +0 -1
  235. package/dist/services/actions/cancel-exchange.js +0 -92
  236. package/dist/services/actions/cancel-exchange.js.map +0 -1
  237. package/dist/services/actions/cancel-fulfillment.d.ts +0 -3
  238. package/dist/services/actions/cancel-fulfillment.d.ts.map +0 -1
  239. package/dist/services/actions/cancel-fulfillment.js +0 -32
  240. package/dist/services/actions/cancel-fulfillment.js.map +0 -1
  241. package/dist/services/actions/cancel-return.d.ts +0 -3
  242. package/dist/services/actions/cancel-return.d.ts.map +0 -1
  243. package/dist/services/actions/cancel-return.js +0 -72
  244. package/dist/services/actions/cancel-return.js.map +0 -1
  245. package/dist/services/actions/create-claim.d.ts +0 -3
  246. package/dist/services/actions/create-claim.d.ts.map +0 -1
  247. package/dist/services/actions/create-claim.js +0 -228
  248. package/dist/services/actions/create-claim.js.map +0 -1
  249. package/dist/services/actions/create-exchange.d.ts +0 -3
  250. package/dist/services/actions/create-exchange.d.ts.map +0 -1
  251. package/dist/services/actions/create-exchange.js +0 -193
  252. package/dist/services/actions/create-exchange.js.map +0 -1
  253. package/dist/services/actions/create-return.d.ts +0 -3
  254. package/dist/services/actions/create-return.d.ts.map +0 -1
  255. package/dist/services/actions/create-return.js +0 -102
  256. package/dist/services/actions/create-return.js.map +0 -1
  257. package/dist/services/actions/index.d.ts +0 -11
  258. package/dist/services/actions/index.d.ts.map +0 -1
  259. package/dist/services/actions/index.js +0 -27
  260. package/dist/services/actions/index.js.map +0 -1
  261. package/dist/services/actions/receive-return.d.ts +0 -3
  262. package/dist/services/actions/receive-return.d.ts.map +0 -1
  263. package/dist/services/actions/receive-return.js +0 -73
  264. package/dist/services/actions/receive-return.js.map +0 -1
  265. package/dist/services/actions/register-fulfillment.d.ts +0 -3
  266. package/dist/services/actions/register-fulfillment.d.ts.map +0 -1
  267. package/dist/services/actions/register-fulfillment.js +0 -30
  268. package/dist/services/actions/register-fulfillment.js.map +0 -1
  269. package/dist/services/actions/register-shipment.d.ts +0 -3
  270. package/dist/services/actions/register-shipment.d.ts.map +0 -1
  271. package/dist/services/actions/register-shipment.js +0 -38
  272. package/dist/services/actions/register-shipment.js.map +0 -1
  273. package/dist/services/index.d.ts.map +0 -1
  274. package/dist/services/order-module-service.d.ts.map +0 -1
  275. package/dist/services/order-service.d.ts.map +0 -1
  276. package/dist/types/address.d.ts.map +0 -1
  277. package/dist/types/index.d.ts.map +0 -1
  278. package/dist/types/line-item-adjustment.d.ts.map +0 -1
  279. package/dist/types/line-item-tax-line.d.ts.map +0 -1
  280. package/dist/types/line-item.d.ts.map +0 -1
  281. package/dist/types/order-change.d.ts +0 -6
  282. package/dist/types/order-change.d.ts.map +0 -1
  283. package/dist/types/order-change.js +0 -3
  284. package/dist/types/order-change.js.map +0 -1
  285. package/dist/types/order-detail.d.ts.map +0 -1
  286. package/dist/types/order.d.ts.map +0 -1
  287. package/dist/types/shipping-method-adjustment.d.ts.map +0 -1
  288. package/dist/types/shipping-method-tax-line.d.ts.map +0 -1
  289. package/dist/types/shipping-method.d.ts.map +0 -1
  290. package/dist/types/tax-line.d.ts.map +0 -1
  291. package/dist/types/transaction.d.ts.map +0 -1
  292. package/dist/types/utils/index.d.ts.map +0 -1
  293. package/dist/utils/actions/cancel-item-fulfillment.d.ts +0 -2
  294. package/dist/utils/actions/cancel-item-fulfillment.d.ts.map +0 -1
  295. package/dist/utils/actions/cancel-item-fulfillment.js +0 -39
  296. package/dist/utils/actions/cancel-item-fulfillment.js.map +0 -1
  297. package/dist/utils/actions/cancel-return.d.ts.map +0 -1
  298. package/dist/utils/actions/cancel.d.ts.map +0 -1
  299. package/dist/utils/actions/fulfill-item.d.ts.map +0 -1
  300. package/dist/utils/actions/index.d.ts.map +0 -1
  301. package/dist/utils/actions/item-add.d.ts.map +0 -1
  302. package/dist/utils/actions/item-remove.d.ts.map +0 -1
  303. package/dist/utils/actions/receive-damaged-return-item.d.ts.map +0 -1
  304. package/dist/utils/actions/receive-return-item.d.ts.map +0 -1
  305. package/dist/utils/actions/reinstate-item.d.ts +0 -2
  306. package/dist/utils/actions/reinstate-item.d.ts.map +0 -1
  307. package/dist/utils/actions/reinstate-item.js +0 -37
  308. package/dist/utils/actions/reinstate-item.js.map +0 -1
  309. package/dist/utils/actions/return-item.d.ts.map +0 -1
  310. package/dist/utils/actions/ship-item.d.ts.map +0 -1
  311. package/dist/utils/actions/shipping-add.d.ts.map +0 -1
  312. package/dist/utils/actions/shipping-remove.d.ts +0 -2
  313. package/dist/utils/actions/shipping-remove.d.ts.map +0 -1
  314. package/dist/utils/actions/shipping-remove.js +0 -41
  315. package/dist/utils/actions/shipping-remove.js.map +0 -1
  316. package/dist/utils/actions/write-off-item.d.ts.map +0 -1
  317. package/dist/utils/apply-order-changes.d.ts +0 -18
  318. package/dist/utils/apply-order-changes.d.ts.map +0 -1
  319. package/dist/utils/apply-order-changes.js +0 -95
  320. package/dist/utils/apply-order-changes.js.map +0 -1
  321. package/dist/utils/base-repository-find.d.ts +0 -3
  322. package/dist/utils/base-repository-find.d.ts.map +0 -1
  323. package/dist/utils/base-repository-find.js +0 -142
  324. package/dist/utils/base-repository-find.js.map +0 -1
  325. package/dist/utils/calculate-order-change.d.ts.map +0 -1
  326. package/dist/utils/index.d.ts.map +0 -1
  327. package/dist/utils/set-action-reference.d.ts +0 -3
  328. package/dist/utils/set-action-reference.d.ts.map +0 -1
  329. package/dist/utils/set-action-reference.js +0 -17
  330. package/dist/utils/set-action-reference.js.map +0 -1
  331. package/dist/utils/transform-order.d.ts.map +0 -1
@@ -1,33 +1,27 @@
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";
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";
4
6
  import OrderService from "./order-service";
5
7
  type InjectedDependencies = {
6
8
  baseRepository: DAL.RepositoryService;
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>;
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>;
26
23
  };
27
- declare const OrderModuleService_base: import("@medusajs/utils/dist/modules-sdk/types/medusa-service").MedusaServiceReturnType<{
28
- Order: {
29
- dto: OrderTypes.OrderDTO;
30
- };
24
+ declare const OrderModuleService_base: new (container: InjectedDependencies) => ModulesSdkUtils.AbstractModuleService<InjectedDependencies, OrderDTO, {
31
25
  Address: {
32
26
  dto: OrderTypes.OrderAddressDTO;
33
27
  };
@@ -49,6 +43,9 @@ declare const OrderModuleService_base: import("@medusajs/utils/dist/modules-sdk/
49
43
  ShippingMethodTaxLine: {
50
44
  dto: OrderTypes.OrderShippingMethodTaxLineDTO;
51
45
  };
46
+ Transaction: {
47
+ dto: OrderTypes.OrderTransactionDTO;
48
+ };
52
49
  OrderChange: {
53
50
  dto: OrderTypes.OrderChangeDTO;
54
51
  };
@@ -58,75 +55,44 @@ declare const OrderModuleService_base: import("@medusajs/utils/dist/modules-sdk/
58
55
  OrderItem: {
59
56
  dto: OrderTypes.OrderItemDTO;
60
57
  };
61
- OrderShippingMethod: {
62
- dto: OrderShippingMethod;
63
- };
64
- ReturnReason: {
65
- dto: OrderTypes.OrderReturnReasonDTO;
66
- };
67
58
  OrderSummary: {
68
59
  dto: OrderTypes.OrderSummaryDTO;
69
60
  };
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;
61
+ OrderShippingMethod: {
62
+ dto: OrderShippingMethod;
84
63
  };
85
64
  }>;
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 {
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 {
87
66
  protected readonly moduleDeclaration: InternalModuleDeclaration;
88
67
  protected baseRepository_: DAL.RepositoryService;
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);
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;
109
84
  private shouldIncludeTotals;
110
85
  private addRelationsToCalculateTotals;
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[]>;
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[]>;
130
96
  createLineItems(data: OrderTypes.CreateOrderLineItemForOrderDTO): Promise<OrderTypes.OrderLineItemDTO[]>;
131
97
  createLineItems(data: OrderTypes.CreateOrderLineItemForOrderDTO[]): Promise<OrderTypes.OrderLineItemDTO[]>;
132
98
  createLineItems(orderId: string, items: OrderTypes.CreateOrderLineItemDTO[], sharedContext?: Context): Promise<OrderTypes.OrderLineItemDTO[]>;
@@ -143,10 +109,10 @@ export default class OrderModuleService<TOrder extends Order = Order, TAddress e
143
109
  protected updateOrderItemWithSelector_(updates: OrderTypes.UpdateOrderItemWithSelectorDTO[], sharedContext?: Context): Promise<OrderItem[]>;
144
110
  createAddresses(data: OrderTypes.CreateOrderAddressDTO, sharedContext?: Context): Promise<OrderTypes.OrderAddressDTO>;
145
111
  createAddresses(data: OrderTypes.CreateOrderAddressDTO[], sharedContext?: Context): Promise<OrderTypes.OrderAddressDTO[]>;
146
- protected createAddresses_(data: OrderTypes.CreateOrderAddressDTO[], sharedContext?: Context): Promise<import("@medusajs/types").InferEntityType<TAddress>[]>;
112
+ protected createAddresses_(data: OrderTypes.CreateOrderAddressDTO[], sharedContext?: Context): Promise<TAddress[]>;
147
113
  updateAddresses(data: OrderTypes.UpdateOrderAddressDTO, sharedContext?: Context): Promise<OrderTypes.OrderAddressDTO>;
148
114
  updateAddresses(data: OrderTypes.UpdateOrderAddressDTO[], sharedContext?: Context): Promise<OrderTypes.OrderAddressDTO[]>;
149
- protected updateAddresses_(data: OrderTypes.UpdateOrderAddressDTO[], sharedContext?: Context): Promise<import("@medusajs/types").InferEntityType<TAddress>[]>;
115
+ protected updateAddresses_(data: OrderTypes.UpdateOrderAddressDTO[], sharedContext?: Context): Promise<TAddress[]>;
150
116
  createShippingMethods(data: OrderTypes.CreateOrderShippingMethodDTO): Promise<OrderTypes.OrderShippingMethodDTO>;
151
117
  createShippingMethods(data: OrderTypes.CreateOrderShippingMethodDTO[]): Promise<OrderTypes.OrderShippingMethodDTO[]>;
152
118
  createShippingMethods(orderId: string, methods: OrderTypes.CreateOrderShippingMethodDTO[], sharedContext?: Context): Promise<OrderTypes.OrderShippingMethodDTO[]>;
@@ -156,8 +122,6 @@ export default class OrderModuleService<TOrder extends Order = Order, TAddress e
156
122
  order_id: string;
157
123
  version: number;
158
124
  }[], 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>;
161
125
  createLineItemAdjustments(adjustments: OrderTypes.CreateOrderLineItemAdjustmentDTO[]): Promise<OrderTypes.OrderLineItemAdjustmentDTO[]>;
162
126
  createLineItemAdjustments(adjustment: OrderTypes.CreateOrderLineItemAdjustmentDTO): Promise<OrderTypes.OrderLineItemAdjustmentDTO[]>;
163
127
  createLineItemAdjustments(orderId: string, adjustments: OrderTypes.CreateOrderLineItemAdjustmentDTO[], sharedContext?: Context): Promise<OrderTypes.OrderLineItemAdjustmentDTO[]>;
@@ -174,65 +138,30 @@ export default class OrderModuleService<TOrder extends Order = Order, TAddress e
174
138
  createShippingMethodTaxLines(taxLine: OrderTypes.CreateOrderShippingMethodTaxLineDTO): Promise<OrderTypes.OrderShippingMethodTaxLineDTO>;
175
139
  createShippingMethodTaxLines(orderId: string, taxLines: OrderTypes.CreateOrderShippingMethodTaxLineDTO[] | OrderTypes.CreateOrderShippingMethodTaxLineDTO, sharedContext?: Context): Promise<OrderTypes.OrderShippingMethodTaxLineDTO[]>;
176
140
  setShippingMethodTaxLines(orderId: string, taxLines: (OrderTypes.CreateOrderShippingMethodTaxLineDTO | OrderTypes.UpdateOrderShippingMethodTaxLineDTO)[], sharedContext?: Context): Promise<OrderTypes.OrderShippingMethodTaxLineDTO[]>;
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>;
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[]>;
188
144
  cancelOrderChange(orderId: string, sharedContext?: Context): Promise<void>;
189
145
  cancelOrderChange(orderId: string[], sharedContext?: Context): Promise<void>;
190
146
  cancelOrderChange(data: OrderTypes.CancelOrderChangeDTO, sharedContext?: Context): Promise<void>;
191
147
  cancelOrderChange(data: OrderTypes.CancelOrderChangeDTO[], 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>;
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>;
201
157
  revertLastVersion(orderId: string, sharedContext?: Context): Promise<void>;
202
158
  protected revertLastChange_(order: OrderDTO, sharedContext?: Context): Promise<void>;
203
- private getActiveOrderChange_;
204
159
  private getAndValidateOrderChange_;
205
160
  addOrderAction(data: OrderTypes.CreateOrderChangeActionDTO, sharedContext?: Context): Promise<OrderTypes.OrderChangeActionDTO>;
206
161
  addOrderAction(data: OrderTypes.CreateOrderChangeActionDTO[], sharedContext?: Context): Promise<OrderTypes.OrderChangeActionDTO[]>;
207
162
  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_;
233
163
  registerFulfillment(data: OrderTypes.RegisterOrderFulfillmentDTO, sharedContext?: Context): Promise<void>;
234
- cancelFulfillment(data: OrderTypes.CancelOrderFulfillmentDTO, sharedContext?: Context): Promise<void>;
235
164
  registerShipment(data: OrderTypes.RegisterOrderShipmentDTO, sharedContext?: Context): Promise<void>;
165
+ createReturn(data: OrderTypes.CreateOrderReturnDTO, sharedContext?: Context): Promise<void>;
236
166
  }
237
167
  export {};
238
- //# sourceMappingURL=order-module-service.d.ts.map