Skip to content

Commit 71c9b92

Browse files
committed
TASK: Updating RAML types, Postman and OAS definition
1 parent 7c59b29 commit 71c9b92

12 files changed

+29
-316
lines changed

bruno/import/Project/Categories/Import-containers/ByProjectKeyCategoriesImportContainersByImportContainerKeyPost.bru

Lines changed: 5 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -14,83 +14,19 @@ body:json {
1414
{
1515
"type" : "category",
1616
"resources" : [ {
17-
"key" : "greatTestCat",
17+
"key" : "category-to-import",
1818
"name" : {
19-
"en" : "greatTestCat"
19+
"en" : "Category to import"
2020
},
2121
"slug" : {
22-
"en" : "great-slug"
22+
"en" : "category-to-import-slug"
2323
},
2424
"description" : {
25-
"de" : "Beschreibung der Kategorie",
26-
"en" : "category's description"
25+
"en" : "Description of category to import"
2726
},
2827
"parent" : {
2928
"typeId" : "category",
30-
"key" : "category-key"
31-
},
32-
"orderHint" : "category's order hint",
33-
"externalId" : "external-id",
34-
"metaTitle" : {
35-
"de" : "der Metatitel der Katze",
36-
"en" : "the cat's meta title"
37-
},
38-
"metaDescription" : {
39-
"de" : "die Meta-Beschreibung der Katze",
40-
"en" : "the cat's meta description"
41-
},
42-
"metaKeywords" : {
43-
"de" : "die Schlüsselwörter der Katze",
44-
"en" : "the cat's key words"
45-
},
46-
"assets" : [ {
47-
"key" : "asset-key",
48-
"sources" : [ {
49-
"uri" : "https://google.com",
50-
"key" : "asset-source-key",
51-
"dimensions" : {
52-
"w" : 12,
53-
"h" : 10
54-
},
55-
"contentType" : "dummy content type"
56-
} ],
57-
"name" : {
58-
"de" : "Asset-Name",
59-
"en" : "asset name"
60-
},
61-
"description" : {
62-
"de" : "Asset-Beschreibung",
63-
"en" : "asset description"
64-
},
65-
"tags" : [ "tag 1" ],
66-
"custom" : {
67-
"type" : {
68-
"key" : "custom-type",
69-
"typeId" : "type"
70-
},
71-
"fields" : {
72-
"exampleBooleanField" : {
73-
"type" : "Boolean",
74-
"value" : false
75-
}
76-
}
77-
}
78-
} ],
79-
"custom" : {
80-
"type" : {
81-
"typeId" : "type",
82-
"key" : "custom-type"
83-
},
84-
"fields" : {
85-
"exampleBooleanField" : {
86-
"type" : "Boolean",
87-
"value" : true
88-
},
89-
"exampleStringField" : {
90-
"type" : "String",
91-
"value" : "a string"
92-
}
93-
}
29+
"key" : "key-of-parent-category"
9430
}
9531
} ]
9632
}

bruno/import/Project/Customers/Import-containers/ByProjectKeyCustomersImportContainersByImportContainerKeyPost.bru

Lines changed: 11 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,53 +14,26 @@ body:json {
1414
{
1515
"type" : "customer",
1616
"resources" : [ {
17+
"key" : "customer-to-import",
1718
"customerNumber" : "12345",
18-
"email" : "alice@example.com",
19-
"password" : "secret",
20-
"firstName" : "Alice",
19+
"email" : "john@example.com",
20+
"password" : "D0cEx@mpl3!2025",
21+
"firstName" : "John",
2122
"lastName" : "Doe",
22-
"middleName" : "Ruth",
23-
"title" : "Ms.",
2423
"dateOfBirth" : "1980-01-01",
25-
"companyName" : "commercetools GmbH",
26-
"vatId" : "123456789",
27-
"addresses" : [ {
28-
"key" : "wCVKP6iU",
29-
"firstName" : "Alice",
30-
"country" : "DE"
31-
}, {
32-
"key" : "en-wcvK6",
33-
"firstName" : "Alice",
34-
"country" : "US"
35-
} ],
36-
"defaultShippingAddress" : 0,
37-
"shippingAddresses" : [ 0, 1 ],
38-
"defaultBillingAddress" : 0,
39-
"billingAddresses" : [ 0, 1 ],
4024
"isEmailVerified" : false,
4125
"externalId" : "external-id-123",
4226
"customerGroup" : {
4327
"typeId" : "customer-group",
4428
"key" : "customer-group-key"
4529
},
46-
"custom" : {
47-
"type" : {
48-
"key" : "custom-type",
49-
"typeId" : "type"
50-
},
51-
"fields" : {
52-
"exampleBooleanField" : {
53-
"type" : "Boolean",
54-
"value" : true
55-
}
56-
}
57-
},
58-
"locale" : "DE",
59-
"salutation" : "Dr.",
60-
"key" : "customer-import-resource-key",
61-
"stores" : [ {
62-
"typeId" : "store",
63-
"key" : "store-key"
30+
"addresses" : [ {
31+
"key" : "john-doe-address-key",
32+
"streetName" : "Main Street",
33+
"streetNumber" : "123",
34+
"postalCode" : "12345",
35+
"city" : "Berlin",
36+
"country" : "DE"
6437
} ],
6538
"authenticationMode" : "Password"
6639
} ]

bruno/import/Project/Inventories/Import-containers/ByProjectKeyInventoriesImportContainersByImportContainerKeyPost.bru

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,6 @@ body:json {
2222
"supplyChannel" : {
2323
"typeId" : "channel",
2424
"key" : "channel-key"
25-
},
26-
"custom" : {
27-
"type" : {
28-
"typeId" : "type",
29-
"key" : "custom-field-key"
30-
},
31-
"fields" : {
32-
"theNameofTheInventoryCustomField" : {
33-
"type" : "LocalizedString",
34-
"value" : {
35-
"en" : "English text",
36-
"de" : "German text"
37-
}
38-
}
39-
}
4025
}
4126
} ]
4227
}

bruno/import/Project/Order-patches/Import-containers/ByProjectKeyOrderPatchesImportContainersByImportContainerKeyPost.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:json {
1414
{
1515
"type" : "order-patch",
1616
"patches" : [ {
17-
"orderNumber" : "12345",
17+
"orderNumber" : "order-number",
1818
"fields" : {
1919
"addReturnInfo" : {
2020
"items" : [ {

bruno/import/Project/Orders/Import-containers/ByProjectKeyOrdersImportContainersByImportContainerKeyPost.bru

Lines changed: 2 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -14,46 +14,11 @@ body:json {
1414
{
1515
"type" : "order",
1616
"resources" : [ {
17-
"orderNumber" : "test-order-number",
17+
"orderNumber" : "order-number",
1818
"customer" : {
1919
"typeId" : "customer",
2020
"key" : "order-customer-key"
2121
},
22-
"customerEmail" : "[email protected]",
23-
"shippingInfo" : {
24-
"shippingMethodName" : "string-name",
25-
"price" : {
26-
"type" : "centPrecision",
27-
"currencyCode" : "EUR",
28-
"centAmount" : 300
29-
},
30-
"shippingRate" : {
31-
"price" : {
32-
"type" : "centPrecision",
33-
"currencyCode" : "EUR",
34-
"centAmount" : 3
35-
},
36-
"tiers" : [ ]
37-
},
38-
"deliveries" : [ {
39-
"id" : "4ce24c27-cce5-447c-890e-0d6b70b690ba",
40-
"createdAt" : "2021-04-30T09:21:15.003Z",
41-
"items" : [ {
42-
"id" : "95a6e7a7-b74e-4397-b0b4-37473d2e3573",
43-
"quantity" : 4
44-
} ],
45-
"parcels" : [ {
46-
"id" : "98840afa-ac20-4a34-a904-88d3407e2d76",
47-
"createdAt" : "2021-04-30T09:21:15.003Z",
48-
"measurements" : {
49-
"heightInMillimeter" : 20,
50-
"lengthInMillimeter" : 40,
51-
"widthInMillimeter" : 5,
52-
"weightInGram" : 10
53-
}
54-
} ]
55-
} ]
56-
},
5722
"lineItems" : [ {
5823
"name" : {
5924
"en" : "abc"
@@ -75,58 +40,9 @@ body:json {
7540
"typeId" : "product-variant",
7641
"key" : "product-key"
7742
},
78-
"sku" : "variant-sku",
79-
"attributes" : [ ],
80-
"images" : [ ],
81-
"prices" : [ ]
43+
"sku" : "variant-sku"
8244
}
8345
} ],
84-
"customLineItems" : [ {
85-
"name" : {
86-
"en" : "name"
87-
},
88-
"totalPrice" : {
89-
"type" : "centPrecision",
90-
"centAmount" : 123,
91-
"currencyCode" : "EUR"
92-
},
93-
"state" : [ {
94-
"quantity" : 10,
95-
"state" : {
96-
"key" : "state-key",
97-
"typeId" : "state"
98-
}
99-
} ],
100-
"money" : {
101-
"type" : "centPrecision",
102-
"centAmount" : 123,
103-
"currencyCode" : "EUR"
104-
},
105-
"quantity" : 10,
106-
"slug" : "my-slug",
107-
"taxCategory" : {
108-
"typeId" : "tax-category",
109-
"key" : "tax-category-key"
110-
},
111-
"discountedPricePerQuantity" : [ {
112-
"value" : {
113-
"type" : "centPrecision",
114-
"centAmount" : 123,
115-
"currencyCode" : "EUR"
116-
},
117-
"includedDiscounts" : [ {
118-
"discountedAmount" : {
119-
"type" : "centPrecision",
120-
"centAmount" : 123,
121-
"currencyCode" : "EUR"
122-
},
123-
"discount" : {
124-
"typeId" : "cart-discount",
125-
"key" : "cart-discount-key"
126-
}
127-
} ]
128-
} ]
129-
} ],
13046
"customerGroup" : {
13147
"typeId" : "customer-group",
13248
"key" : "customer-group-key"

bruno/import/Project/Prices/Import-containers/ByProjectKeyPricesImportContainersByImportContainerKeyPost.bru

Lines changed: 1 addition & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:json {
1414
{
1515
"type" : "price",
1616
"resources" : [ {
17-
"key" : "bigPriceKeyTestCat",
17+
"key" : "price-key",
1818
"country" : "DE",
1919
"validFrom" : "2021-04-11T14:00:00.000Z",
2020
"validUntil" : "2022-04-11T14:00:00.000Z",
@@ -26,76 +26,6 @@ body:json {
2626
"typeId" : "channel",
2727
"key" : "channel-key"
2828
},
29-
"discounted" : {
30-
"value" : {
31-
"type" : "centPrecision",
32-
"currencyCode" : "EUR",
33-
"centAmount" : 251
34-
},
35-
"discount" : {
36-
"typeId" : "product-discount",
37-
"key" : "product-discount-key"
38-
}
39-
},
40-
"tiers" : [ {
41-
"minimumQuantity" : 5,
42-
"value" : {
43-
"type" : "centPrecision",
44-
"currencyCode" : "EUR",
45-
"centAmount" : 80
46-
}
47-
} ],
48-
"productVariant" : {
49-
"typeId" : "product-variant",
50-
"key" : "red-t-shirt"
51-
},
52-
"product" : {
53-
"typeId" : "product",
54-
"key" : "t-shirt"
55-
},
56-
"value" : {
57-
"type" : "centPrecision",
58-
"currencyCode" : "EUR",
59-
"centAmount" : 300
60-
},
61-
"custom" : {
62-
"type" : {
63-
"typeId" : "type",
64-
"key" : "custom-type"
65-
},
66-
"fields" : {
67-
"customFieldName" : {
68-
"type" : "String",
69-
"value" : "customFieldValue"
70-
}
71-
}
72-
}
73-
}, {
74-
"key" : "bigPriceKeyTestCat",
75-
"country" : "DE",
76-
"validFrom" : "2021-04-11T14:00:00.000Z",
77-
"validUntil" : "2022-04-11T14:00:00.000Z",
78-
"discounted" : {
79-
"value" : {
80-
"type" : "highPrecision",
81-
"fractionDigits" : 3,
82-
"preciseAmount" : 2513,
83-
"currencyCode" : "EUR",
84-
"centAmount" : 1234
85-
},
86-
"discount" : {
87-
"typeId" : "product-discount",
88-
"key" : "product-discount-key"
89-
}
90-
},
91-
"tiers" : [ {
92-
"minimumQuantity" : 5,
93-
"value" : {
94-
"type" : "centPrecision",
95-
"currencyCode" : "EUR",
96-
"centAmount" : 80
97-
}
98-
} ],
9929
"productVariant" : {
10030
"typeId" : "product-variant",
10131
"key" : "red-t-shirt"

bruno/import/Project/Product-drafts/Import-containers/ByProjectKeyProductDraftsImportContainersByImportContainerKeyPost.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ body:json {
3131
"type" : "reference",
3232
"name" : "product-ref-attribute",
3333
"value" : {
34-
"key" : "greatTestCat",
34+
"key" : "category-key",
3535
"typeId" : "category"
3636
}
3737
}, {

0 commit comments

Comments
 (0)