Skip to content

Commit 70e1a29

Browse files
committed
TASK: Updating RAML types, Postman and OAS definition
1 parent 4fac5bf commit 70e1a29

133 files changed

Lines changed: 2278 additions & 1649 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: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
meta {
2+
name: SetPurchaseOrderNumber
3+
type: http
4+
seq: 840
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" : "setPurchaseOrderNumber",
19+
"purchaseOrderNumber" : "purchaseOrderNumberString"
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/SetShippingAddress.bru

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

77
post {

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

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

77
post {

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

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

77
post {

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

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

77
post {

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

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

77
post {

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

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

77
post {

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

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

77
post {

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

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

77
post {

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

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

77
post {

0 commit comments

Comments
 (0)