Skip to content

Commit bfc53d1

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

238 files changed

Lines changed: 1630 additions & 945 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
meta {
2+
name: LockCart
3+
type: http
4+
seq: 797
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" : "lockCart"
19+
}
20+
]
21+
}
22+
}
23+
24+
query {
25+
~expand:
26+
}
27+
28+
script:post-response {
29+
var data = res.body;
30+
if(res.status == 200 || res.status == 201) {
31+
if(data.results && data.results[0] && data.results[0].id && data.results[0].version){
32+
bru.setEnvVar("cart-id", data.results[0].id);
33+
bru.setEnvVar("cart-version", data.results[0].version);
34+
}
35+
if(data.results && data.results[0] && data.results[0].key){
36+
bru.setEnvVar("cart-key", data.results[0].key);
37+
}
38+
if(data.version){
39+
bru.setEnvVar("cart-version", data.version);
40+
}
41+
if(data.id){
42+
bru.setEnvVar("cart-id", data.id);
43+
}
44+
if(data.key){
45+
bru.setEnvVar("cart-key", data.key);
46+
}
47+
48+
}
49+
}
50+
51+
assert {
52+
res.status: in [200, 201]
53+
}

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: 797
4+
seq: 798
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: 798
4+
seq: 799
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: 799
4+
seq: 800
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: 800
4+
seq: 801
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: 801
4+
seq: 802
55
}
66

77
post {

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

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

77
post {

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

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

77
post {

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

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

77
post {

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

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

77
post {

0 commit comments

Comments
 (0)