Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.28 KB

catalog-quick-amount.md

File metadata and controls

32 lines (23 loc) · 1.28 KB

Catalog Quick Amount

Represents a Quick Amount in the Catalog.

Structure

Catalog Quick Amount

Fields

Name Type Tags Description
type str (Catalog Quick Amount Type) Required Determines the type of a specific Quick Amount.
amount Money Required Represents an amount of money. Money fields can be signed or unsigned.
Fields that do not explicitly define whether they are signed or unsigned are
considered unsigned and can only hold positive amounts. For signed fields, the
sign of the value indicates the purpose of the money transfer. See
Working with Monetary Amounts
for more information.
score long|int Optional Describes the ranking of the Quick Amount provided by machine learning model, in the range [0, 100].
MANUAL type amount will always have score = 100.
ordinal long|int Optional The order in which this Quick Amount should be displayed.

Example (as JSON)

{
  "type": "QUICK_AMOUNT_TYPE_MANUAL",
  "amount": {
    "amount": 0,
    "currency": "MNT"
  },
  "score": 12,
  "ordinal": 200
}