feat(core-flows,medusa,types): fulfillment API: create (#7101)

what:

- adds fulfillment create API

RESOLVES CORE-1962
This commit is contained in:
Riqwan Thamir authored and GitHub committed 2024-04-23 08:35:44 +00:00
1 parent 14a7378375
commit 18f3aacee6
26 files changed
+1037 -14

No files matched your search

@@ -162,12 +162,12 @@ export default class Fulfillment {
@BeforeCreate()
onCreate() {
this.id = generateEntityId(this.id, "ful")
this.provider_id ??= this.provider.id
this.provider_id ??= this.provider_id ?? this.provider?.id
}
@OnInit()
onInit() {
this.id = generateEntityId(this.id, "ful")
this.provider_id ??= this.provider.id
this.provider_id ??= this.provider_id ?? this.provider?.id
}
}