fix(types): fix shipping profile type optional in create type / method (#11453)
* fix(types): fix shipping profile type optional in create type / method * example fix
This commit is contained in:
@@ -10,7 +10,7 @@ export interface CreateShippingProfileDTO {
|
||||
/**
|
||||
* The type of the shipping profile.
|
||||
*/
|
||||
type?: string
|
||||
type: string
|
||||
|
||||
/**
|
||||
* Holds custom data in key-value pairs.
|
||||
|
||||
@@ -1625,9 +1625,11 @@ export interface IFulfillmentModuleService extends IModuleService {
|
||||
* await fulfillmentModuleService.createShippingProfiles([
|
||||
* {
|
||||
* name: "Default",
|
||||
* type: "default"
|
||||
* },
|
||||
* {
|
||||
* name: "Digital",
|
||||
* type: "digital"
|
||||
* },
|
||||
* ])
|
||||
*/
|
||||
@@ -1647,6 +1649,7 @@ export interface IFulfillmentModuleService extends IModuleService {
|
||||
* const shippingProfile =
|
||||
* await fulfillmentModuleService.createShippingProfiles({
|
||||
* name: "Default",
|
||||
* type: "default"
|
||||
* })
|
||||
*/
|
||||
createShippingProfiles(
|
||||
|
||||
Reference in New Issue
Block a user