Skip to content

Commit 8217c60

Browse files
Merge pull request #11 from skip-pay/order-prices-description-improvements
Order and item prices descriptions improvements
2 parents 32073b6 + 84fa93f commit 8217c60

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

Diff for: SkipPay_OAS.yaml

+30-11
Original file line numberDiff line numberDiff line change
@@ -1683,8 +1683,9 @@ components:
16831683
$ref: '#/components/schemas/ChangeOrderItemRequestSerializer'
16841684
description: List of changed items. All items are considered when empty.
16851685
totalPrice:
1686-
$ref: '#/components/schemas/Amount'
16871686
description: The total financial amount of items (from the `orderItems` array). You can specify the amount if it differs from the sum of the item prices. If this amount is not specified, `application.order.totalPrice` is used.
1687+
allOf:
1688+
- $ref: '#/components/schemas/Amount'
16881689
totalVat:
16891690
type: array
16901691
items:
@@ -1811,7 +1812,9 @@ components:
18111812
description: 'Variable symbols for pairing. First symbol in array is used for making the payment to your account (if not specified later in `Mark order items as sent` or `Mark order items as delivered`) or we expect you make payment on our account with this symbol (if not specified later in `Mark order items as returned` operation). Strings must contain only numbers, maximum length is 10 characters (digits). Leading zeros are ignored.'
18121813
maxLength: 10
18131814
totalPrice:
1814-
$ref: '#/components/schemas/Amount'
1815+
description: Order total price including VAT.
1816+
allOf:
1817+
- $ref: '#/components/schemas/Amount'
18151818
totalVat:
18161819
type: array
18171820
items:
@@ -1935,7 +1938,9 @@ components:
19351938
description: 'Variable symbols for pairing. First symbol in array is used for making the payment to your account (if not specified later in `Mark order items as sent` or `Mark order items as delivered`) or we expect you make payment on our account with this symbol (if not specified later in `Mark order items as returned` operation). Strings must contain only numbers, maximum length is 10 characters (digits). Leading zeros are ignored.'
19361939
nullable: true
19371940
totalPrice:
1938-
$ref: '#/components/schemas/Amount'
1941+
description: New order total price including VAT.
1942+
allOf:
1943+
- $ref: '#/components/schemas/Amount'
19391944
totalVat:
19401945
type: array
19411946
items:
@@ -2022,10 +2027,14 @@ components:
20222027
type: string
20232028
description: List of item categories
20242029
nullable: true
2025-
totalPrice:
2026-
$ref: '#/components/schemas/Amount'
2030+
totalPrice:
2031+
description: Order items total price including VAT.
2032+
allOf:
2033+
- $ref: '#/components/schemas/Amount'
20272034
totalVat:
2028-
$ref: '#/components/schemas/VatAmount'
2035+
description: Order items VAT including VAT rate.
2036+
allOf:
2037+
- $ref: '#/components/schemas/VatAmount'
20292038
productUrl:
20302039
type: string
20312040
format: url
@@ -2043,7 +2052,9 @@ components:
20432052
image:
20442053
$ref: '#/components/schemas/FileRequest'
20452054
unitPrice:
2046-
$ref: '#/components/schemas/Amount'
2055+
description: Order unit item price including VAT.
2056+
allOf:
2057+
- $ref: '#/components/schemas/Amount'
20472058
unitVat:
20482059
$ref: '#/components/schemas/VatAmount'
20492060
quantity:
@@ -2090,7 +2101,9 @@ components:
20902101
image:
20912102
$ref: '#/components/schemas/FileResponse'
20922103
unitPrice:
2093-
$ref: '#/components/schemas/Amount'
2104+
description: Order unit item price including VAT.
2105+
allOf:
2106+
- $ref: '#/components/schemas/Amount'
20942107
unitVat:
20952108
$ref: '#/components/schemas/VatAmount'
20962109
quantity:
@@ -2365,7 +2378,9 @@ components:
23652378
description: List of item categories
23662379
nullable: true
23672380
totalPrice:
2368-
$ref: '#/components/schemas/Amount'
2381+
description: Order item total price including VAT.
2382+
allOf:
2383+
- $ref: '#/components/schemas/Amount'
23692384
totalVat:
23702385
$ref: '#/components/schemas/VatAmount'
23712386
productUrl:
@@ -2376,7 +2391,9 @@ components:
23762391
example: 'https://www.example.com'
23772392
nullable: true
23782393
unitPrice:
2379-
$ref: '#/components/schemas/Amount'
2394+
description: Order unit item price including VAT.
2395+
allOf:
2396+
- $ref: '#/components/schemas/Amount'
23802397
unitVat:
23812398
$ref: '#/components/schemas/VatAmount'
23822399
quantity:
@@ -2399,7 +2416,9 @@ components:
23992416
description: 'Variable symbols for pairing. First symbol in array is used for making the payment to your account (if not specified later in `Mark order items as sent` or `Mark order items as delivered`) or we expect you make payment on our account with this symbol (if not specified later in `Mark order items as returned` operation). Strings must contain only numbers, maximum length is 10 characters (digits). Leading zeros are ignored.'
24002417
maxLength: 10
24012418
totalPrice:
2402-
$ref: '#/components/schemas/Amount'
2419+
description: Order total price including VAT.
2420+
allOf:
2421+
- $ref: '#/components/schemas/Amount'
24032422
totalVat:
24042423
type: array
24052424
items:

0 commit comments

Comments
 (0)