INTERFACE

DiscountAction

A voucher action can either be an entry point itself, or a "sub-action" of some other entry point action. On a flat list of actions, a sub-action's entrypoint is the recent one above it on the list. You can also check the sub-action's entry point directly via entryPoint field.

link GraphQL Schema definition

1interface DiscountAction {
2id: Int!
3
4isEntryPoint: Boolean!
5
6# Required permission: Voucher:read
7entryPoint: VoucherAction
8
9continueStrategy: VoucherActionContinueStrategy!
10
11# Required permission: Voucher:read
12#
13# All elements are always returned
14criteria: [VoucherActionCriteria!]!
15
16# Required permission: Voucher:read
17result: VoucherActionResult
18
19}