**What** - Create the fulfillment manual package with a first iteration API - Create a new `AbstractFulfillmentProviderService` and `IFulfillmentProvider` - Modify the module service interface to add new methods to manipulate the fulfillment and the communication with the external provider - create (no bulk) - cancel (no bulk) - update (no bulk) - list - listAndCount - retrieve - Add new methods to the service provider service to include communication with the third party provider - get options - create - cancel - validate data - validate option - Update/create interfaces and DTO's - fix repository serializer to allow non entity to be passed without throwing - split module tests into multiple files to simplify navigation - Add integration tests to validate fulfillments manipulation and external provider loading + communication FIXES CORE-1729 FIXES CORE-1785 FIXES CORE-1784 FIXES CORE-1766
20 lines
520 B
TypeScript
20 lines
520 B
TypeScript
import { AbstractFulfillmentProviderService } from "@medusajs/utils/src"
|
|
|
|
export class FulfillmentProviderServiceFixtures extends AbstractFulfillmentProviderService {
|
|
static identifier = "fixtures-fulfillment-provider"
|
|
|
|
async createFulfillment(data, items, order, fulfillment): Promise<any> {
|
|
return {}
|
|
}
|
|
|
|
async cancelFulfillment(fulfillment): Promise<any> {
|
|
return {}
|
|
}
|
|
|
|
async getFulfillmentOptions(): Promise<any> {
|
|
return {}
|
|
}
|
|
}
|
|
|
|
export const services = [FulfillmentProviderServiceFixtures]
|