feat(medusa): Migrate and fix order service (#1894)
* feat(medusa): Migrate and fix order service * fix(medusa): Order service pass Payment instead of the session: * fix(medusa): Remove unnecessary method in the client library * test(medusa): Fix unit tests * test(medusa): Fix unit tests * fix(medusa): Typo * test(meduas): fix unit test * feat(medusa): Update base service used and missing transaction * test(meduas): fix unit test * fix(medusa): cleanup and missing transaction * fix(medusa): missing withTransaction on some mocks * feat(medusa): Update order service method visibility * include feedback * feat(medusa); revert order payment status" * test(medusa): fix unit Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
co-authored by
Oliver Windall Juhl
parent
1998902a94
commit
b54d5178c9
@@ -65,4 +65,5 @@ export * from "./store"
|
||||
export * from "./swap"
|
||||
export * from "./tax-provider"
|
||||
export * from "./tax-rate"
|
||||
export * from "./tracking-link"
|
||||
export * from "./user"
|
||||
|
||||
@@ -242,7 +242,7 @@ export class Order extends BaseEntity {
|
||||
// Total fields
|
||||
shipping_total: number
|
||||
discount_total: number
|
||||
tax_total: number
|
||||
tax_total: number | null
|
||||
refunded_total: number
|
||||
total: number
|
||||
subtotal: number
|
||||
|
||||
@@ -7,10 +7,10 @@ import {
|
||||
ManyToOne,
|
||||
Unique,
|
||||
} from "typeorm"
|
||||
import { BaseEntity } from "../interfaces/models/base-entity"
|
||||
import { BaseEntity } from "../interfaces"
|
||||
import { DbAwareColumn } from "../utils/db-aware-column"
|
||||
import { Cart } from "./cart"
|
||||
import { generateEntityId } from "../utils/generate-entity-id"
|
||||
import { generateEntityId } from "../utils"
|
||||
|
||||
export enum PaymentSessionStatus {
|
||||
AUTHORIZED = "authorized",
|
||||
|
||||
Reference in New Issue
Block a user