iglooX DocsDevelopers

Schema

Quantity Redemption Option

Current direct-discount terms on a program or balance, or immutable selected terms on a redemption/reversal receipt. The full unit cost is consumed even when the permitted actual saving is smaller. Direct rewards spend the same pool as voucher exchanges and create no voucher batch.

  • Models

Overview

object · 5 properties · 5 required

Properties

uuid

string Required

Stable option identity; preserve it through edits.

Format uuid

quantity_cost

integer Required
Minimum 1
Maximum 2147483647

calculation

reference Required

References Calculation.

minimum_eligible_spend

oneOf Required

Minimum remaining eligible spend for this option, or null for no minimum.

Nullable Yes
One of

One of 1

null

One of 2

reference

References Positive Money.

is_stackable

boolean Required

Whether checkout may combine this discount with other rewards. Every combined reward must permit stacking; checkout coordinates order and remaining eligible spend.

Used by

Raw YAML
Download source
title: Quantity Redemption Option
type: object
x-tags:
  - Models
description: Current direct-discount terms on a program or balance, or immutable selected terms on a redemption/reversal
  receipt. The full unit cost is consumed even when the permitted actual saving is smaller. Direct rewards spend the
  same pool as voucher exchanges and create no voucher batch.
required:
  - uuid
  - quantity_cost
  - calculation
  - minimum_eligible_spend
  - is_stackable
properties:
  uuid:
    type: string
    format: uuid
    description: Stable option identity; preserve it through edits.
  quantity_cost:
    type: integer
    minimum: 1
    maximum: 2147483647
  calculation:
    $ref: ./Calculation.yaml
  minimum_eligible_spend:
    oneOf:
      - type: "null"
      - $ref: ./PositiveMoney.yaml
    description: Minimum remaining eligible spend for this option, or null for no minimum.
  is_stackable:
    type: boolean
    description: Whether checkout may combine this discount with other rewards. Every combined reward must permit stacking;
      checkout coordinates order and remaining eligible spend.

Search documentation

Search across this documentation site.