Skip to content

Commit 7e5c1f4

Browse files
Merge pull request #1009 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents a9df0a6 + 5bc82a1 commit 7e5c1f4

657 files changed

Lines changed: 45487 additions & 2458 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.

changes.md

Lines changed: 187 additions & 713 deletions
Large diffs are not rendered by default.

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

Lines changed: 86 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,11 @@ input AddressInput {
661661
custom: CustomFieldsDraft
662662
}
663663

664+
enum AddressRole {
665+
Billing
666+
Shipping
667+
}
668+
664669
enum AnonymousCartSignInMode {
665670
"""
666671
`LineItem`s of the anonymous cart will be copied to the customer’s active cart that has been modified most recently.
@@ -1400,6 +1405,9 @@ type BusinessUnit implements Versioned & ReferenceExpandable {
14001405
topLevelUnitRef: KeyReference
14011406
topLevelUnit: BusinessUnit!
14021407
approvalRuleMode: BusinessUnitApprovalRuleMode!
1408+
1409+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1410+
customerGroupAssignments: [CustomerGroupAssignment!]
14031411
id: String!
14041412
version: Long!
14051413
createdAt: DateTime!
@@ -1415,45 +1423,47 @@ type BusinessUnitAddressAdded implements MessagePayload {
14151423

14161424
type BusinessUnitAddressChanged implements MessagePayload {
14171425
address: Address!
1426+
addressRoles: [AddressRole!]!
14181427
type: String!
14191428
}
14201429

14211430
type BusinessUnitAddressCustomFieldAdded implements MessagePayload {
14221431
name: String!
14231432
value: Json!
1424-
addressId: String
1433+
addressId: String!
14251434
type: String!
14261435
}
14271436

14281437
type BusinessUnitAddressCustomFieldChanged implements MessagePayload {
14291438
name: String!
14301439
value: Json!
14311440
oldValue: Json
1432-
addressId: String
1441+
addressId: String!
14331442
type: String!
14341443
}
14351444

14361445
type BusinessUnitAddressCustomFieldRemoved implements MessagePayload {
14371446
name: String!
1438-
addressId: String
1447+
addressId: String!
14391448
type: String!
14401449
}
14411450

14421451
type BusinessUnitAddressCustomTypeRemoved implements MessagePayload {
14431452
oldTypeId: String
1444-
addressId: String
1453+
addressId: String!
14451454
type: String!
14461455
}
14471456

14481457
type BusinessUnitAddressCustomTypeSet implements MessagePayload {
14491458
customFields: CustomFieldsType!
14501459
oldTypeId: String
1451-
addressId: String
1460+
addressId: String!
14521461
type: String!
14531462
}
14541463

14551464
type BusinessUnitAddressRemoved implements MessagePayload {
14561465
address: Address!
1466+
addressRoles: [AddressRole!]!
14571467
type: String!
14581468
}
14591469

@@ -1563,6 +1573,25 @@ type BusinessUnitCustomTypeSet implements MessagePayload {
15631573
type: String!
15641574
}
15651575

1576+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1577+
type BusinessUnitCustomerGroupAssignmentAdded implements MessagePayload {
1578+
customerGroupAssignment: CustomerGroupAssignment!
1579+
type: String!
1580+
}
1581+
1582+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1583+
type BusinessUnitCustomerGroupAssignmentRemoved implements MessagePayload {
1584+
customerGroupAssignment: CustomerGroupAssignment!
1585+
type: String!
1586+
}
1587+
1588+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1589+
type BusinessUnitCustomerGroupAssignmentsSet implements MessagePayload {
1590+
customerGroupAssignments: [CustomerGroupAssignment!]
1591+
oldCustomerGroupAssignments: [CustomerGroupAssignment!]
1592+
type: String!
1593+
}
1594+
15661595
type BusinessUnitDefaultBillingAddressSet implements MessagePayload {
15671596
address: Address
15681597
type: String!
@@ -1602,6 +1631,9 @@ input BusinessUnitDraft {
16021631
associates: [AssociateDraft!]
16031632
associateMode: BusinessUnitAssociateMode
16041633
approvalRuleMode: BusinessUnitApprovalRuleMode
1634+
1635+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1636+
customerGroupAssignments: [CustomerGroupAssignmentDraft!]
16051637
}
16061638

16071639
type BusinessUnitNameChanged implements MessagePayload {
@@ -1667,8 +1699,12 @@ type BusinessUnitStoreModeChanged implements MessagePayload {
16671699
oldStoreMode: String!
16681700
stores: [Store!]
16691701
oldStores: [Store!]
1702+
inheritedStores: [Store!]
1703+
oldInheritedStores: [Store!]
16701704
storesRef: [KeyReference!]
16711705
oldStoresRef: [KeyReference!]
1706+
inheritedStoresRef: [KeyReference!]
1707+
oldInheritedStoresRef: [KeyReference!]
16721708
type: String!
16731709
}
16741710

@@ -1740,6 +1776,15 @@ input BusinessUnitUpdateAction {
17401776

17411777
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
17421778
setUnitType: SetBusinessUnitUnitType
1779+
1780+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1781+
addCustomerGroupAssignment: AddCustomerGroupAssignment
1782+
1783+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1784+
removeCustomerGroupAssignment: RemoveCustomerGroupAssignment
1785+
1786+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1787+
setCustomerGroupAssignments: SetCustomerGroupAssignments
17431788
}
17441789

17451790
input CancelQuoteRequest {
@@ -3638,7 +3683,7 @@ type Customer implements Versioned & ReferenceExpandable {
36383683
billingAddresses: [Address!]!
36393684
storesRef: [KeyReference!]!
36403685
stores: [Store!]!
3641-
customerGroupAssignments: [CustomerGroupAssignment!]
3686+
customerGroupAssignments: [CustomerGroupAssignment!]!
36423687
custom: CustomFieldsType
36433688
id: String!
36443689
version: Long!
@@ -3660,44 +3705,56 @@ type CustomerAddressAdded implements MessagePayload {
36603705

36613706
type CustomerAddressChanged implements MessagePayload {
36623707
address: Address!
3708+
addressRoles: [AddressRole!]!
36633709
type: String!
36643710
}
36653711

36663712
type CustomerAddressCustomFieldAdded implements MessagePayload {
36673713
name: String!
36683714
value: Json!
3669-
addressId: String
3715+
addressId: String!
36703716
type: String!
36713717
}
36723718

36733719
type CustomerAddressCustomFieldChanged implements MessagePayload {
36743720
name: String!
36753721
value: Json!
36763722
previousValue: Json
3677-
addressId: String
3723+
addressId: String!
36783724
type: String!
36793725
}
36803726

36813727
type CustomerAddressCustomFieldRemoved implements MessagePayload {
36823728
name: String!
3683-
addressId: String
3729+
addressId: String!
36843730
type: String!
36853731
}
36863732

36873733
type CustomerAddressCustomTypeRemoved implements MessagePayload {
36883734
previousTypeId: String
3689-
addressId: String
3735+
addressId: String!
36903736
type: String!
36913737
}
36923738

36933739
type CustomerAddressCustomTypeSet implements MessagePayload {
36943740
customFields: CustomFieldsType!
36953741
previousTypeId: String
3696-
addressId: String
3742+
addressId: String!
36973743
type: String!
36983744
}
36993745

37003746
type CustomerAddressRemoved implements MessagePayload {
3747+
address: Address!
3748+
addressRoles: [AddressRole!]!
3749+
type: String!
3750+
}
3751+
3752+
type CustomerBillingAddressAdded implements MessagePayload {
3753+
address: Address!
3754+
type: String!
3755+
}
3756+
3757+
type CustomerBillingAddressRemoved implements MessagePayload {
37013758
address: Address!
37023759
type: String!
37033760
}
@@ -3757,11 +3814,13 @@ type CustomerDefaultShippingAddressSet implements MessagePayload {
37573814
}
37583815

37593816
type CustomerDeleted implements MessagePayload {
3817+
email: String
37603818
type: String!
37613819
}
37623820

37633821
type CustomerEmailChanged implements MessagePayload {
37643822
email: String!
3823+
oldEmail: String!
37653824
type: String!
37663825
}
37673826

@@ -3790,6 +3849,11 @@ type CustomerEmailVerified implements MessagePayload {
37903849
type: String!
37913850
}
37923851

3852+
type CustomerExternalIdSet implements MessagePayload {
3853+
externalId: String
3854+
type: String!
3855+
}
3856+
37933857
type CustomerFirstNameSet implements MessagePayload {
37943858
firstName: String
37953859
type: String!
@@ -3829,6 +3893,7 @@ type CustomerGroupAssignmentRemoved implements MessagePayload {
38293893

38303894
type CustomerGroupAssignmentsSet implements MessagePayload {
38313895
customerGroupAssignments: [CustomerGroupAssignment!]!
3896+
oldCustomerGroupAssignments: [CustomerGroupAssignment!]!
38323897
type: String!
38333898
}
38343899

@@ -3979,6 +4044,16 @@ enum CustomerSearchStatus {
39794044
Deactivated
39804045
}
39814046

4047+
type CustomerShippingAddressAdded implements MessagePayload {
4048+
address: Address!
4049+
type: String!
4050+
}
4051+
4052+
type CustomerShippingAddressRemoved implements MessagePayload {
4053+
address: Address!
4054+
type: String!
4055+
}
4056+
39824057
input CustomerSignInDraft {
39834058
email: String!
39844059
password: String!
@@ -5435,7 +5510,6 @@ type KeyReference {
54355510
"A key that references a resource."
54365511
scalar KeyReferenceInput
54375512

5438-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
54395513
enum Level {
54405514
"The attribute can be used on the variant level"
54415515
Variant
@@ -8669,7 +8743,6 @@ type ProductData {
86698743
key: String): ProductVariant
86708744
skus: [String!]!
86718745

8672-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
86738746
attributesRaw: [RawProductAttribute!]!
86748747
}
86758748

@@ -8796,8 +8869,6 @@ input ProductDraft {
87968869
metaDescription: [LocalizedStringItemInputType!]
87978870
metaKeywords: [LocalizedStringItemInputType!]
87988871
masterVariant: ProductVariantInput
8799-
8800-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
88018872
attributes: [ProductAttributeInput!] = []
88028873
variants: [ProductVariantInput!] = []
88038874
taxCategory: ResourceIdentifierInput
@@ -9163,8 +9234,6 @@ type ProductProjectionMessagePayload {
91639234
published: Boolean!
91649235
masterVariant: ProductVariant!
91659236
variants: [ProductVariant!]!
9166-
9167-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
91689237
attributes: [RawProductAttribute!]!
91699238
taxCategoryRef: Reference
91709239
taxCategory: TaxCategory
@@ -9731,8 +9800,6 @@ input ProductTailoringDraft {
97319800
metaKeywords: [LocalizedStringItemInputType!]
97329801
publish: Boolean
97339802
variants: [ProductVariantTailoringInput!] = []
9734-
9735-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
97369803
attributes: [ProductAttributeInput!] = []
97379804
}
97389805

@@ -9825,8 +9892,6 @@ input ProductTailoringUpdateAction {
98259892
removeVariant: RemoveProductVariantTailoring
98269893
publish: PublishTailoring
98279894
unpublish: UnpublishTailoring
9828-
9829-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
98309895
setProductAttribute: SetProductLevelTailoringAttribute
98319896
addAsset: AddProductTailoringAsset
98329897
addExternalImage: AddProductTailoringExternalImage
@@ -9936,8 +10001,6 @@ input ProductUpdateAction {
993610001
revertStagedChanges: RevertStagedChanges
993710002
revertStagedVariantChanges: RevertStagedVariantChanges
993810003
publish: PublishProduct
9939-
9940-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
994110004
setProductAttribute: ProductLevelAttributeInput
994210005
unpublish: UnpublishProduct
994310006
transitionState: TransitionProductState
@@ -10921,7 +10984,6 @@ type RawProductAttribute {
1092110984
name: String!
1092210985
value: Json!
1092310986

10924-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1092510987
attributesRaw: [RawProductAttribute!]
1092610988
attributeDefinition: AttributeDefinition
1092710989
referencedResource: ReferenceExpandable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
23+
* <p>Retrieves a QuoteRequest with the provided <code>id</code> in a BusinessUnit. If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import org.apache.commons.lang3.builder.HashCodeBuilder;
1717

1818
/**
19-
* <p>Checks if a QuoteRequest exists with the provided <code>id</code>. Returns a <code>200</code> status if the QuoteRequest exists, or a <code>404</code> status otherwise.</p>
19+
* <p>Checks if a QuoteRequest exists with the provided <code>id</code> in a BusinessUnit. Returns a <code>200 OK</code> status if the QuoteRequest exists or a <span>Not Found</span> error otherwise.</p>
2020
*
2121
* <hr>
2222
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
23+
* <p>Updates a QuoteRequest in a BusinessUnit using one or more <span>update actions</span>. If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.apache.commons.lang3.builder.HashCodeBuilder;
2222

2323
/**
24-
* <p>If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
24+
* <p>Updates a QuoteRequest in a BusinessUnit using one or more <span>update actions</span>. If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
2525
*
2626
* <hr>
2727
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
*
23+
* <p>Retrieves all QuoteRequests in a BusinessUnit.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Checks if one or more QuoteRequests exist for the provided query predicate. Returns a <code>200</code> status if any QuoteRequests match the query predicate, or a <code>404</code> status otherwise.</p>
23+
* <p>Checks if one or more QuoteRequests exist for the provided query predicate in a BusinessUnit. Returns a <code>200 OK</code> status if any QuoteRequests match the query predicate, or a <span>Not Found</span> error otherwise.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
23+
* <p>Retrieves a QuoteRequest with the provided <code>key</code> in a BusinessUnit. If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

0 commit comments

Comments
 (0)