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 authored and GitHub committed 2025-02-14 15:11:25 +01:00
1 parent b37010857a
commit 271337eb23
2 files changed
+4 -1

No files matched your search

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