feat: list OE by order id (#2457)

**What**
- allow passing `order_id` param to OE list endpoint
This commit is contained in:
Frane Polić
2022-10-17 17:34:20 +02:00
committed by GitHub
parent 48411157b1
commit 73db8cfca6
2 changed files with 98 additions and 22 deletions

View File

@@ -11,6 +11,7 @@ import { IsOptional, IsString } from "class-validator"
* x-authenticated: true
* parameters:
* - (query) q {string} Query used for searching order edit internal note.
* - (query) order_id {string} List order edits by order id.
* - (query) limit=20 {number} The number of items in the response
* - (query) offset=0 {number} The offset of items in response
* - (query) expand {string} Comma separated list of relations to include in the results.
@@ -90,4 +91,8 @@ export class GetOrderEditsParams extends extendedFindParamsMixin({
@IsString()
@IsOptional()
q?: string
@IsString()
@IsOptional()
order_id?: string
}