Skip to content

Commit e195892

Browse files
Merge pull request #843 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 19300ef + 576f9af commit e195892

File tree

58 files changed

+5627
-121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+5627
-121
lines changed

changes.md

+28
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
**Api changes**
22

3+
<details>
4+
<summary>Added Enum(s)</summary>
5+
6+
- added enum `ViewMyShoppingLists` to type `Permission`
7+
- added enum `ViewOthersShoppingLists` to type `Permission`
8+
- added enum `UpdateMyShoppingLists` to type `Permission`
9+
- added enum `UpdateOthersShoppingLists` to type `Permission`
10+
- added enum `CreateMyShoppingLists` to type `Permission`
11+
- added enum `CreateOthersShoppingLists` to type `Permission`
12+
- added enum `DeleteMyShoppingLists` to type `Permission`
13+
- added enum `DeleteOthersShoppingLists` to type `Permission`
14+
</details>
15+
16+
317
<details>
418
<summary>Added Type(s)</summary>
519

@@ -17,6 +31,9 @@
1731
<details>
1832
<summary>Added Resource(s)</summary>
1933

34+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/shopping-lists`
35+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/shopping-lists/key={key}`
36+
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/shopping-lists/{ID}`
2037
- added resource `/{projectKey}/business-units/key={key}/associates/{associateId}`
2138
- added resource `/{projectKey}/business-units/{businessUnitId}/associates/{associateId}`
2239
- added resource `/{projectKey}/in-store/key={storeKey}/business-units/key={key}/associates/{associateId}`
@@ -27,6 +44,17 @@
2744
<details>
2845
<summary>Added Method(s)</summary>
2946

47+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().get()`
48+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().head()`
49+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().post()`
50+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().get()`
51+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().head()`
52+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().post()`
53+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().delete()`
54+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().get()`
55+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().head()`
56+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().post()`
57+
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().delete()`
3058
- added method `apiRoot.withProjectKey().businessUnits().keyWithKeyValueAssociatesWithAssociateIdValue().get()`
3159
- added method `apiRoot.withProjectKey().businessUnits().withBusinessUnitIdValueAssociatesWithAssociateIdValue().get()`
3260
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().businessUnits().keyWithKeyValueAssociatesWithAssociateIdValue().get()`

commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls

+34-2
Original file line numberDiff line numberDiff line change
@@ -896,13 +896,20 @@ input ApproverHierarchyDraft {
896896
tiers: [ApproverConjunctionDraft!]!
897897
}
898898

899-
type AsAssociate implements CartQueryInterface & OrderQueryInterface & QuoteQueryInterface & QuoteRequestQueryInterface {
899+
type AsAssociate implements CartQueryInterface & OrderQueryInterface & QuoteQueryInterface & QuoteRequestQueryInterface & ShoppingListQueryInterface {
900900
cart(id: String!): Cart
901901
carts(where: String, sort: [String!], limit: Int, offset: Int): CartQueryResult!
902902
order(
903903
"Queries with specified ID"
904904
id: String, orderNumber: String): Order
905905
orders(where: String, sort: [String!], limit: Int, offset: Int): OrderQueryResult!
906+
shoppingList(
907+
"Queries with specified ID"
908+
id: String,
909+
910+
"Queries with specified key"
911+
key: String): ShoppingList
912+
shoppingLists(where: String, sort: [String!], limit: Int, offset: Int): ShoppingListQueryResult!
906913
quoteRequest(
907914
"Queries with specified ID"
908915
id: String,
@@ -6162,12 +6169,18 @@ type Mutation {
61626169
createShoppingList(draft: ShoppingListDraft!,
61636170

61646171
"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
6165-
storeKey: KeyReferenceInput): ShoppingList
6172+
storeKey: KeyReferenceInput,
6173+
6174+
"Create/modify entity as an associate in business-unit."
6175+
asAssociate: AsAssociateArgument): ShoppingList
61666176
updateShoppingList(version: Long!, actions: [ShoppingListUpdateAction!]!,
61676177

61686178
"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
61696179
storeKey: KeyReferenceInput,
61706180

6181+
"Create/modify entity as an associate in business-unit."
6182+
asAssociate: AsAssociateArgument,
6183+
61716184
"Queries with specified ID"
61726185
id: String,
61736186

@@ -6178,6 +6191,9 @@ type Mutation {
61786191
"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
61796192
storeKey: KeyReferenceInput,
61806193

6194+
"Create/modify entity as an associate in business-unit."
6195+
asAssociate: AsAssociateArgument,
6196+
61816197
"Queries with specified ID"
61826198
id: String,
61836199

@@ -7593,14 +7609,18 @@ enum Permission {
75937609
CreateMyOrdersFromMyCarts
75947610
CreateMyOrdersFromMyQuotes
75957611
CreateMyQuoteRequestsFromMyCarts
7612+
CreateMyShoppingLists
75967613
CreateOrdersFromOthersCarts
75977614
CreateOrdersFromOthersQuotes
75987615
CreateOthersCarts
7616+
CreateOthersShoppingLists
75997617
CreateQuoteRequestsFromOthersCarts
76007618
DeclineMyQuotes
76017619
DeclineOthersQuotes
76027620
DeleteMyCarts
7621+
DeleteMyShoppingLists
76037622
DeleteOthersCarts
7623+
DeleteOthersShoppingLists
76047624
ReassignMyQuotes
76057625
ReassignOthersQuotes
76067626
RenegotiateMyQuotes
@@ -7612,18 +7632,22 @@ enum Permission {
76127632
UpdateMyCarts
76137633
UpdateMyOrders
76147634
UpdateMyQuoteRequests
7635+
UpdateMyShoppingLists
76157636
UpdateOthersCarts
76167637
UpdateOthersOrders
76177638
UpdateOthersQuoteRequests
7639+
UpdateOthersShoppingLists
76187640
UpdateParentUnit
76197641
ViewMyCarts
76207642
ViewMyOrders
76217643
ViewMyQuoteRequests
76227644
ViewMyQuotes
7645+
ViewMyShoppingLists
76237646
ViewOthersCarts
76247647
ViewOthersOrders
76257648
ViewOthersQuoteRequests
76267649
ViewOthersQuotes
7650+
ViewOthersShoppingLists
76277651
}
76287652

76297653
type PlainEnumValue {
@@ -12277,6 +12301,10 @@ input SetShoppingListAnonymousId {
1227712301
anonymousId: String
1227812302
}
1227912303

12304+
input SetShoppingListBusinessUnit {
12305+
businessUnit: ResourceIdentifierInput!
12306+
}
12307+
1228012308
input SetShoppingListCustomField {
1228112309
name: String!
1228212310
value: String
@@ -13539,6 +13567,8 @@ type ShoppingList implements Versioned & ReferenceExpandable {
1353913567
slugAllLocales: [LocalizedString!]
1354013568
customerRef: Reference
1354113569
customer: Customer
13570+
businessUnit: BusinessUnit
13571+
businessUnitRef: KeyReference
1354213572
storeRef: KeyReference
1354313573
store: Store
1354413574
anonymousId: String
@@ -13557,6 +13587,7 @@ type ShoppingList implements Versioned & ReferenceExpandable {
1355713587
input ShoppingListDraft {
1355813588
name: [LocalizedStringItemInputType!]!
1355913589
description: [LocalizedStringItemInputType!]
13590+
businessUnit: ResourceIdentifierInput
1356013591
lineItems: [ShoppingListLineItemDraft!] = []
1356113592
textLineItems: [TextLineItemDraft!] = []
1356213593
custom: CustomFieldsDraft
@@ -13657,6 +13688,7 @@ input ShoppingListUpdateAction {
1365713688
removeLineItem: RemoveShoppingListLineItem
1365813689
removeTextLineItem: RemoveShoppingListTextLineItem
1365913690
setAnonymousId: SetShoppingListAnonymousId
13691+
setBusinessUnit: SetShoppingListBusinessUnit
1366013692
setCustomField: SetShoppingListCustomField
1366113693
setCustomType: SetShoppingListCustomType
1366213694
setCustomer: SetShoppingListCustomer

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyRequestBuilder.java

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCar
3636
apiHttpClient, projectKey, associateId, businessUnitKey);
3737
}
3838

39+
public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsRequestBuilder shoppingLists() {
40+
return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsRequestBuilder(
41+
apiHttpClient, projectKey, associateId, businessUnitKey);
42+
}
43+
3944
public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersRequestBuilder orders() {
4045
return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersRequestBuilder(
4146
apiHttpClient, projectKey, associateId, businessUnitKey);

0 commit comments

Comments
 (0)