Skip to content

Commit 51103d1

Browse files
committed
TASK: Updating RAML types, Postman and OAS definition
1 parent 6298096 commit 51103d1

165 files changed

Lines changed: 3601 additions & 1575 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: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
meta {
2+
name: AddCustomerGroupAssignment
3+
type: http
4+
seq: 780
5+
}
6+
7+
post {
8+
url: {{apiUrl}}/{{project-key}}/as-associate/{{associate-id}}/business-units/{{business-unit-id}}
9+
body: json
10+
auth: inherit
11+
}
12+
13+
body:json {
14+
{
15+
"version": {{business-unit-version}},
16+
"actions": [
17+
{
18+
"action" : "addCustomerGroupAssignment",
19+
"customerGroupAssignment" : {
20+
"customerGroup" : {
21+
"id" : "{{customer-group-id}}",
22+
"typeId" : "customer-group"
23+
}
24+
}
25+
}
26+
]
27+
}
28+
}
29+
30+
query {
31+
~expand:
32+
}
33+
34+
script:post-response {
35+
var data = res.body;
36+
if(res.status == 200 || res.status == 201) {
37+
if(data.results && data.results[0] && data.results[0].id && data.results[0].version){
38+
bru.setEnvVar("business-unit-id", data.results[0].id);
39+
bru.setEnvVar("business-unit-version", data.results[0].version);
40+
}
41+
if(data.results && data.results[0] && data.results[0].key){
42+
bru.setEnvVar("business-unit-key", data.results[0].key);
43+
}
44+
if(data.version){
45+
bru.setEnvVar("business-unit-version", data.version);
46+
}
47+
if(data.id){
48+
bru.setEnvVar("business-unit-id", data.id);
49+
}
50+
if(data.key){
51+
bru.setEnvVar("business-unit-key", data.key);
52+
}
53+
54+
}
55+
}
56+
57+
assert {
58+
res.status: in [200, 201]
59+
}

bruno/api/Project/As-associate/Business-units/Update actions/AddShippingAddressId.bru

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

77
post {

bruno/api/Project/As-associate/Business-units/Update actions/AddStore.bru

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

77
post {

bruno/api/Project/As-associate/Business-units/Update actions/ChangeAddress.bru

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

77
post {

bruno/api/Project/As-associate/Business-units/Update actions/ChangeApprovalRuleMode.bru

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

77
post {

bruno/api/Project/As-associate/Business-units/Update actions/ChangeAssociate.bru

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

77
post {

bruno/api/Project/As-associate/Business-units/Update actions/ChangeAssociateMode.bru

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

77
post {

bruno/api/Project/As-associate/Business-units/Update actions/ChangeName.bru

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

77
post {

bruno/api/Project/As-associate/Business-units/Update actions/ChangeParentUnit.bru

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

77
post {

bruno/api/Project/As-associate/Business-units/Update actions/ChangeStatus.bru

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

77
post {

0 commit comments

Comments
 (0)