@thorprovider/medusa-extended 1.13.3 → 1.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/medusa-extended",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
4
4
  "description": "Thor Commerce multi-tenant admin extensions for Medusa v2",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",
@@ -262,6 +262,18 @@ describe('DropshipperClient.getOrder', () => {
262
262
  totals: { subtotal: 5000, shipping_total: 0, discount_total: 0, total: 5000, cost_total: 2000, profit: 3000, margin_percent: 60 },
263
263
  payment_collected_by: 'dropshipper',
264
264
  settlement_status: 'unsettled',
265
+ financial_summary: {
266
+ paid_total: 0,
267
+ refunded_total: 0,
268
+ pending_difference: 5000,
269
+ current_order_total: 5000,
270
+ original_order_total: 5000,
271
+ transaction_total: 0,
272
+ accounting_total: 5000,
273
+ credit_line_total: 0,
274
+ effective: { paid_total: 0, pending_difference: 5000 },
275
+ },
276
+ credit_lines: [],
265
277
  timeline: [],
266
278
  },
267
279
  })
@@ -271,6 +283,8 @@ describe('DropshipperClient.getOrder', () => {
271
283
  const result = await client().getOrder('ord_1')
272
284
  expect(result.order.id).toBe('ord_1')
273
285
  expect(result.order.totals.profit).toBe(3000)
286
+ expect(result.order.financial_summary.credit_line_total).toBe(0)
287
+ expect(result.order.credit_lines).toEqual([])
274
288
  })
275
289
  })
276
290