Skip to main content
Skip to main content

create - Fulfillment Module Reference

This documentation provides a reference to the create method. This belongs to the Fulfillment Module.

create(data, sharedContext?): Promise<FulfillmentSetDTO[]>

This method creates fulfillment sets.

Example

const fulfillmentSets = await fulfillmentModuleService.create(
[
{
name: "Shipping",
type: "default",
},
{
name: "Pickup",
type: "provider-controlled",
},
]
)

Parameters

The fulfillment sets to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<FulfillmentSetDTO[]>Required
The created fulfillment sets.

create(data, sharedContext?): Promise<FulfillmentSetDTO>

This method creates a fulfillment set.

Example

const fulfillmentSet = await fulfillmentModuleService.create({
name: "Shipping",
type: "default",
})

Parameters

The fulfillment set to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<FulfillmentSetDTO>Required
The created fulfillment set.
Was this section helpful?