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

what:

- adds fulfillment create API

RESOLVES CORE-1962
This commit is contained in:
Riqwan Thamir
2024-04-23 08:35:44 +00:00
committed by GitHub
parent 14a7378375
commit 18f3aacee6
26 changed files with 1037 additions and 14 deletions
@@ -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
}
}