Skip to content

Commit a0b690a

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

12 files changed

Lines changed: 64 additions & 38 deletions

bruno/api/Project/Channels/ByProjectKeyChannelsByIDPost.bru

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ body:json {
1616
"actions" : [ {
1717
"action" : "changeName",
1818
"name" : {
19-
"en" : "New Name"
19+
"en-US" : "Updated US Distribution Channel",
20+
"de-DE" : "Aktualisierter US-Vertriebskanal",
21+
"fr-FR" : "Canal de distribution américain mis à jour",
22+
"es-ES" : "Canal de distribución de EE. UU. actualizado"
2023
}
2124
} ]
2225
}

bruno/api/Project/Channels/ByProjectKeyChannelsKeyByKeyPost.bru

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ body:json {
1616
"actions" : [ {
1717
"action" : "changeName",
1818
"name" : {
19-
"en" : "New Name"
19+
"en-US" : "Updated US Distribution Channel",
20+
"de-DE" : "Aktualisierter US-Vertriebskanal",
21+
"fr-FR" : "Canal de distribution américain mis à jour",
22+
"es-ES" : "Canal de distribución de EE. UU. actualizado"
2023
}
2124
} ]
2225
}

bruno/api/Project/Channels/ByProjectKeyChannelsPost.bru

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,37 @@ post {
1212

1313
body:json {
1414
{
15-
"key" : "commercetools",
16-
"roles" : [ "InventorySupply" ]
15+
"key" : "distribution-channel-us",
16+
"roles" : [ "ProductDistribution", "InventorySupply" ],
17+
"name" : {
18+
"en-US" : "US Distribution Channel",
19+
"de-DE" : "US-Vertriebskanal",
20+
"fr-FR" : "Canal de distribution américain",
21+
"es-ES" : "Canal de distribución de EE. UU."
22+
},
23+
"description" : {
24+
"en-US" : "Primary distribution channel for United States market",
25+
"de-DE" : "Primärer Vertriebskanal für den US-Markt",
26+
"fr-FR" : "Canal de distribution principal pour le marché américain",
27+
"es-ES" : "Canal de distribución principal para el mercado estadounidense"
28+
},
29+
"address" : {
30+
"key" : "us-warehouse-address",
31+
"country" : "US",
32+
"firstName" : "John",
33+
"lastName" : "Smith",
34+
"streetName" : "Commerce Street",
35+
"streetNumber" : "123",
36+
"postalCode" : "94105",
37+
"city" : "San Francisco",
38+
"state" : "California",
39+
"phone" : "+14155551234",
40+
"email" : "warehouse@example.com"
41+
},
42+
"geoLocation" : {
43+
"type" : "Point",
44+
"coordinates" : [ -122.4194, 37.7749 ]
45+
}
1746
}
1847
}
1948

bruno/api/Project/Channels/Update actions/AddRoles.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body:json {
1616
"actions": [
1717
{
1818
"action" : "addRoles",
19-
"roles" : [ "InventorySupply" ]
19+
"roles" : [ "OrderExport" ]
2020
}
2121
]
2222
}

bruno/api/Project/Channels/Update actions/ChangeDescription.bru

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ body:json {
1717
{
1818
"action" : "changeDescription",
1919
"description" : {
20-
"en" : "new Description EN",
21-
"de" : "new Description DE"
20+
"en-US" : "Updated channel description",
21+
"de-DE" : "Aktualisierte Kanalbeschreibung",
22+
"fr-FR" : "Description du canal mise à jour",
23+
"es-ES" : "Descripción del canal actualizada"
2224
}
2325
}
2426
]

bruno/api/Project/Channels/Update actions/ChangeKey.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body:json {
1616
"actions": [
1717
{
1818
"action" : "changeKey",
19-
"key" : "myNewChannelKey"
19+
"key" : "my-updated-key"
2020
}
2121
]
2222
}

bruno/api/Project/Channels/Update actions/ChangeName.bru

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ body:json {
1717
{
1818
"action" : "changeName",
1919
"name" : {
20-
"en" : "new Channel Name EN",
21-
"de" : "new Channel Name DE"
20+
"en-US" : "Updated Channel Name",
21+
"de-DE" : "Aktualisierter Kanalname",
22+
"fr-FR" : "Nom de canal mis à jour",
23+
"es-ES" : "Nombre de canal actualizado"
2224
}
2325
}
2426
]

bruno/api/Project/Channels/Update actions/SetAddress.bru

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,17 @@ body:json {
1717
{
1818
"action" : "setAddress",
1919
"address" : {
20-
"key" : "exampleKey",
21-
"title" : "My Address",
22-
"salutation" : "Mr.",
23-
"firstName" : "Example",
24-
"lastName" : "Person",
25-
"streetName" : "Example Street",
26-
"streetNumber" : "4711",
27-
"additionalStreetInfo" : "Backhouse",
28-
"postalCode" : "80933",
29-
"city" : "Exemplary City",
30-
"region" : "Exemplary Region",
31-
"state" : "Exemplary State",
32-
"country" : "DE",
33-
"company" : "My Company Name",
34-
"department" : "Sales",
35-
"building" : "Hightower 1",
36-
"apartment" : "247",
37-
"pOBox" : "2471",
38-
"phone" : "+49 89 12345678",
39-
"mobile" : "+49 171 2345678",
40-
"email" : "email@example.com",
41-
"fax" : "+49 89 12345679",
42-
"additionalAddressInfo" : "no additional Info",
43-
"externalId" : "Information not needed"
20+
"key" : "warehouse-address-key",
21+
"country" : "US",
22+
"firstName" : "John",
23+
"lastName" : "Doe",
24+
"streetName" : "Market Street",
25+
"streetNumber" : "456",
26+
"postalCode" : "94103",
27+
"city" : "San Francisco",
28+
"state" : "California",
29+
"phone" : "+14155559876",
30+
"email" : "johndoe@example.com"
4431
}
4532
}
4633
]

bruno/api/Project/Channels/Update actions/SetAddressCustomType.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ body:json {
1717
{
1818
"action" : "setAddressCustomType",
1919
"type" : {
20-
"id" : "{{type-id}}",
20+
"key" : "address-custom-type",
2121
"typeId" : "type"
2222
},
2323
"fields" : {

bruno/api/Project/Channels/Update actions/SetCustomType.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ body:json {
1717
{
1818
"action" : "setCustomType",
1919
"type" : {
20-
"id" : "{{type-id}}",
20+
"key" : "channel-custom-type",
2121
"typeId" : "type"
2222
},
2323
"fields" : {

0 commit comments

Comments
 (0)