Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions topsort-api-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,11 @@ components:
Use product attributes to filter auction bids. This feature requires additional integration
and configuration.
properties:
type:
type: string
description: Filter type. The value has to be `attribute` for attribute filter.
enum:
- attribute
operator:
type: string
description: Filter operator type. The value can be `and` (has all) or `or` (has any).
Expand All @@ -802,6 +807,35 @@ components:
- color:red
- material:leather
- size:32
PromotionsFilter:
type: object
title: PromotionsFilter
description: >
Use promotions to filter auction bids. This feature requires additional integration and
configuration.
properties:
type:
type: string
description: Filter type. The value has to be `promotion` for promotion filter.
enum:
- promotion
operator:
type: string
description: Filter operator type. The value can be `and` (has all) or `or` (has any).
enum:
- and
- or
promotions:
type: array
description: >
Promotions used for filtering. The promotion name is limited to 40 characters.
maxItems: 3
items:
type: string
maxLength: 40
examples:
- half-off
- offers
occurredAt:
type: string
format: date-time
Expand Down Expand Up @@ -986,6 +1020,8 @@ components:
$ref: "#/components/schemas/PlacementId"
page:
$ref: "#/components/schemas/Page"
filter:
$ref: "#/components/schemas/PromotionsFilter"
required:
- type
- slots
Expand Down
Loading