Skip to content

Commit a9bd190

Browse files
committed
TASK: Updating RAML types, Postman and OAS definition
1 parent db9aff0 commit a9bd190

File tree

320 files changed

+2195
-1293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

320 files changed

+2195
-1293
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
meta {
2+
name: ChangePriceRoundingMode
3+
type: http
4+
seq: 757
5+
}
6+
7+
post {
8+
url: {{apiUrl}}/{{project-key}}/as-associate/{{associate-id}}/in-business-unit/key={{business-unit-key}}/carts/{{cart-id}}
9+
body: json
10+
auth: inherit
11+
}
12+
13+
body:json {
14+
{
15+
"version": {{cart-version}},
16+
"actions": [
17+
{
18+
"action" : "changePriceRoundingMode",
19+
"priceRoundingMode" : "HalfDown"
20+
}
21+
]
22+
}
23+
}
24+
25+
query {
26+
~expand:
27+
}
28+
29+
script:post-response {
30+
var data = res.body;
31+
if(res.status == 200 || res.status == 201) {
32+
if(data.results && data.results[0] && data.results[0].id && data.results[0].version){
33+
bru.setEnvVar("cart-id", data.results[0].id);
34+
bru.setEnvVar("cart-version", data.results[0].version);
35+
}
36+
if(data.results && data.results[0] && data.results[0].key){
37+
bru.setEnvVar("cart-key", data.results[0].key);
38+
}
39+
if(data.version){
40+
bru.setEnvVar("cart-version", data.version);
41+
}
42+
if(data.id){
43+
bru.setEnvVar("cart-id", data.id);
44+
}
45+
if(data.key){
46+
bru.setEnvVar("cart-key", data.key);
47+
}
48+
49+
}
50+
}
51+
52+
assert {
53+
res.status: in [200, 201]
54+
}

bruno/api/Project/As-associate/In-business-unit/Carts/Update actions/ChangeTaxCalculationMode.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: ChangeTaxCalculationMode
33
type: http
4-
seq: 757
4+
seq: 758
55
}
66

77
post {

bruno/api/Project/As-associate/In-business-unit/Carts/Update actions/ChangeTaxMode.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: ChangeTaxMode
33
type: http
4-
seq: 758
4+
seq: 759
55
}
66

77
post {

bruno/api/Project/As-associate/In-business-unit/Carts/Update actions/ChangeTaxRoundingMode.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: ChangeTaxRoundingMode
33
type: http
4-
seq: 759
4+
seq: 760
55
}
66

77
post {

bruno/api/Project/As-associate/In-business-unit/Carts/Update actions/FreezeCart.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: FreezeCart
33
type: http
4-
seq: 760
4+
seq: 761
55
}
66

77
post {

bruno/api/Project/As-associate/In-business-unit/Carts/Update actions/Recalculate.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: Recalculate
33
type: http
4-
seq: 761
4+
seq: 762
55
}
66

77
post {

bruno/api/Project/As-associate/In-business-unit/Carts/Update actions/RemoveCustomLineItem.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: RemoveCustomLineItem
33
type: http
4-
seq: 762
4+
seq: 763
55
}
66

77
post {

bruno/api/Project/As-associate/In-business-unit/Carts/Update actions/RemoveDiscountCode.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: RemoveDiscountCode
33
type: http
4-
seq: 763
4+
seq: 764
55
}
66

77
post {

bruno/api/Project/As-associate/In-business-unit/Carts/Update actions/RemoveItemShippingAddress.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: RemoveItemShippingAddress
33
type: http
4-
seq: 764
4+
seq: 765
55
}
66

77
post {

bruno/api/Project/As-associate/In-business-unit/Carts/Update actions/RemoveLineItem.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: RemoveLineItem
33
type: http
4-
seq: 765
4+
seq: 766
55
}
66

77
post {

0 commit comments

Comments
 (0)