fix: adds return reasons to swaps (#1026)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { Type } from "class-transformer"
|
import { Type } from "class-transformer"
|
||||||
import {
|
import {
|
||||||
|
Min,
|
||||||
IsOptional,
|
IsOptional,
|
||||||
IsArray,
|
IsArray,
|
||||||
IsString,
|
IsString,
|
||||||
@@ -292,7 +293,16 @@ class ReturnItem {
|
|||||||
|
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
|
@Min(1)
|
||||||
quantity: number
|
quantity: number
|
||||||
|
|
||||||
|
@IsOptional()
|
||||||
|
@IsString()
|
||||||
|
reason_id?: string
|
||||||
|
|
||||||
|
@IsOptional()
|
||||||
|
@IsString()
|
||||||
|
note?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
class ReturnShipping {
|
class ReturnShipping {
|
||||||
|
|||||||
Reference in New Issue
Block a user