swag-analytics/spec/definitions/AmountResult.yaml
Andrew Mayorov 0fa13899d8
Allow negative amounts in AmountResult (#56)
This is used for things like shop balances which may often be zero
and occasionally negative.
2021-04-26 13:13:37 +03:00

18 lines
561 B
YAML

type: object
allOf:
- type: object
required:
- amount
- currency
properties:
amount:
description: |
Стоимость предлагаемых товаров или услуг, в минорных денежных
единицах, например в копейках в случае указания российских рублей в
качестве валюты.
type: integer
format: int64
currency:
x-merge-obj:
- $ref: '#/definitions/Currency'