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:
Shahed Nasser
2025-02-14 16:11:25 +02:00
committed by GitHub
parent b37010857a
commit 271337eb23
2 changed files with 4 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ export interface CreateShippingProfileDTO {
/**
* The type of the shipping profile.
*/
type?: string
type: string
/**
* Holds custom data in key-value pairs.

View File

@@ -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(