iglooX DocsDevelopers

Schema

Calculation Input

The fixed-value or percentage benefit for vouchers, direct quantity discounts and cashback earning. Supply the fields for the selected type in the merchant currency. Percentage benefits round half up once to minor units before applying an optional cap.

  • Models

Overview

oneOf · 0 properties · 0 required

Composition

One of

One of 1

object
Nested properties
type
string Required

Allowed values

fixed
fixed_value
reference Required

References Positive Money.

percentage
null
percentage_cap
null

One of 2

object
Nested properties
type
string Required

Allowed values

percentage
fixed_value
null
percentage
string Required

The percentage discount, supplied as a string.

Example 10
Pattern ^(?:0\.[1-9]|[1-9][0-9]?(?:\.[0-9])?|100)$
percentage_cap
oneOf
Nullable Yes
One of
One of 1
null
One of 2
reference

References Positive Money.

Used by

Raw YAML
Download source
title: Calculation Input
description: The fixed-value or percentage benefit for vouchers, direct quantity discounts and cashback
  earning. Supply the fields for the selected type in the merchant currency. Percentage benefits round half up
  once to minor units before applying an optional cap.
oneOf:
  - title: Fixed benefit
    type: object
    required:
      - type
      - fixed_value
    properties:
      type:
        type: string
        enum:
          - fixed
      fixed_value:
        $ref: ./PositiveMoney.yaml
      percentage:
        type: "null"
      percentage_cap:
        type: "null"
  - title: Percentage benefit
    type: object
    required:
      - type
      - percentage
    properties:
      type:
        type: string
        enum:
          - percentage
      fixed_value:
        type: "null"
      percentage:
        type: string
        pattern: ^(?:0\.[1-9]|[1-9][0-9]?(?:\.[0-9])?|100)$
        example: "10"
        description: The percentage discount, supplied as a string.
      percentage_cap:
        oneOf:
          - type: "null"
          - $ref: ./PositiveMoney.yaml
x-tags:
  - Models

Search documentation

Search across this documentation site.