Skip to content

Commit efc8df0

Browse files
Merge pull request #909 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents d000c77 + 59278f1 commit efc8df0

File tree

88 files changed

+2665
-55
lines changed

Some content is hidden

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

88 files changed

+2665
-55
lines changed

changes.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
<details>
44
<summary>Added Type(s)</summary>
55

6+
- added type `ExpiredCustomerEmailTokenError`
7+
- added type `ExpiredCustomerPasswordTokenError`
8+
- added type `GraphQLExpiredCustomerEmailTokenError`
9+
- added type `GraphQLExpiredCustomerPasswordTokenError`
610
- added type `CheckoutOrderCreationFailedEvent`
711
- added type `CheckoutPaymentAuthorizationCancelledEvent`
812
- added type `CheckoutPaymentAuthorizationFailedEvent`
@@ -17,6 +21,23 @@
1721
</details>
1822

1923

24+
<details>
25+
<summary>Added Property(s)</summary>
26+
27+
- added property `invalidateOlderTokens` to type `CustomerCreateEmailToken`
28+
- added property `invalidateOlderTokens` to type `CustomerCreatePasswordResetToken`
29+
- added property `invalidateOlderTokens` to type `CustomerToken`
30+
- added property `value` to type `CustomerEmailTokenCreatedMessage`
31+
- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessage`
32+
- added property `value` to type `CustomerPasswordTokenCreatedMessage`
33+
- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessage`
34+
- added property `value` to type `CustomerEmailTokenCreatedMessagePayload`
35+
- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessagePayload`
36+
- added property `value` to type `CustomerPasswordTokenCreatedMessagePayload`
37+
- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessagePayload`
38+
</details>
39+
40+
2041
<details>
2142
<summary>Added Enum(s)</summary>
2243

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3660,6 +3660,7 @@ type CustomerEmailToken implements Versioned {
36603660
customerId: String!
36613661
expiresAt: DateTime!
36623662
value: String!
3663+
invalidateOlderTokens: Boolean!
36633664
id: String!
36643665
version: Long!
36653666
createdAt: DateTime!
@@ -3670,6 +3671,8 @@ type CustomerEmailToken implements Versioned {
36703671

36713672
type CustomerEmailTokenCreated implements MessagePayload {
36723673
customerId: String!
3674+
value: String
3675+
invalidateOlderTokens: Boolean!
36733676
expiresAt: DateTime!
36743677
type: String!
36753678
}
@@ -3814,6 +3817,7 @@ type CustomerPasswordToken implements Versioned {
38143817
customerId: String!
38153818
expiresAt: DateTime!
38163819
value: String!
3820+
invalidateOlderTokens: Boolean!
38173821
id: String!
38183822
version: Long!
38193823
createdAt: DateTime!
@@ -3824,6 +3828,8 @@ type CustomerPasswordToken implements Versioned {
38243828

38253829
type CustomerPasswordTokenCreated implements MessagePayload {
38263830
customerId: String!
3831+
value: String
3832+
invalidateOlderTokens: Boolean!
38273833
expiresAt: DateTime!
38283834
type: String!
38293835
}
@@ -6023,21 +6029,27 @@ type Mutation {
60236029
"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
60246030
storeKey: KeyReferenceInput): Customer
60256031

6026-
"The token value is used to reset the password of the customer with the given email. The token is valid only for 10 minutes."
6032+
"The token value is used to reset the password of the customer with the given email. The token is valid for the time-to-live period (TTL)."
60276033
customerCreatePasswordResetToken(email: String!,
60286034

60296035
"The validity of the created token in minutes."
60306036
ttlMinutes: Int,
60316037

60326038
"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
6033-
storeKey: KeyReferenceInput): CustomerPasswordToken
6039+
storeKey: KeyReferenceInput,
6040+
6041+
"Invalidate older, previously created tokens when a new token is created."
6042+
invalidateOlderTokens: Boolean! = false): CustomerPasswordToken
60346043
customerCreateEmailVerificationToken(id: String!, version: Long,
60356044

60366045
"The validity of the created token in minutes."
60376046
ttlMinutes: Int!,
60386047

60396048
"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
6040-
storeKey: KeyReferenceInput): CustomerEmailToken!
6049+
storeKey: KeyReferenceInput,
6050+
6051+
"Invalidate older, previously created tokens when a new token is created."
6052+
invalidateOlderTokens: Boolean! = false): CustomerEmailToken!
60416053

60426054
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta If used with an access token for Anonymous Sessions, all orders and carts belonging to the anonymousId will be assigned to the newly created customer."
60436055
customerSignMeUp(draft: CustomerSignMeUpDraft!,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/**
1919
* <p>Use this method to verify a global Customer's email during their email verification process.</p>
2020
* <p>Verifying the email of the Customer produces the CustomerEmailVerified Message.</p>
21+
* <p>After the email is verified, all email tokens issued previously through the email verification flow are invalidated. This invalidation of tokens is eventually consistent.</p>
2122
*
2223
* <hr>
2324
* <div class=code-example>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
/**
2020
* <p>Use this method to verify a global Customer's email during their email verification process.</p>
2121
* <p>Verifying the email of the Customer produces the CustomerEmailVerified Message.</p>
22+
* <p>After the email is verified, all email tokens issued previously through the email verification flow are invalidated. This invalidation of tokens is eventually consistent.</p>
2223
*
2324
* <hr>
2425
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/**
1919
* <p>Use this method to create an email token for a global Customer during their email verification process.</p>
20-
* <p>Creating an email token for the Customer produces the CustomerEmailTokenCreated Message.</p>
20+
* <p>Creating an email token for the Customer produces the CustomerEmailTokenCreated Message. The Message will include the token's value, if the token's validity is 60 minutes or less.</p>
2121
*
2222
* <hr>
2323
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* <p>Use this method to create an email token for a global Customer during their email verification process.</p>
21-
* <p>Creating an email token for the Customer produces the CustomerEmailTokenCreated Message.</p>
21+
* <p>Creating an email token for the Customer produces the CustomerEmailTokenCreated Message. The Message will include the token's value, if the token's validity is 60 minutes or less.</p>
2222
*
2323
* <hr>
2424
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
/**
1919
* <p>Use this method to reset a global Customer's password during their password reset process.</p>
20-
* <p>After the password is reset, any previously issued access and/or refresh tokens created through the password flow or refresh token flow are invalidated.</p>
2120
* <p>Resetting the password of the Customer produces the CustomerPasswordUpdated Message with <code>reset=true</code>.</p>
21+
* <p>After the password is reset, all password tokens issued previously through the password reset flow are invalidated. In addition, any access and refresh tokens issued previously through the password flow and refresh token flow are invalidated. This invalidation of tokens is eventually consistent.</p>
2222
*
2323
* <hr>
2424
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
/**
2020
* <p>Use this method to reset a global Customer's password during their password reset process.</p>
21-
* <p>After the password is reset, any previously issued access and/or refresh tokens created through the password flow or refresh token flow are invalidated.</p>
2221
* <p>Resetting the password of the Customer produces the CustomerPasswordUpdated Message with <code>reset=true</code>.</p>
22+
* <p>After the password is reset, all password tokens issued previously through the password reset flow are invalidated. In addition, any access and refresh tokens issued previously through the password flow and refresh token flow are invalidated. This invalidation of tokens is eventually consistent.</p>
2323
*
2424
* <hr>
2525
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/**
1919
* <p>Use this method to create a password reset token for a global Customer during their password reset process.</p>
20-
* <p>Creating a password reset token does not invalidate existing tokens.</p>
20+
* <p>Creating a password reset token for the Customer produces the CustomerPasswordTokenCreated Message. The Message will include the token's value, if the token's validity is 60 minutes or less.</p>
2121
*
2222
* <hr>
2323
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* <p>Use this method to create a password reset token for a global Customer during their password reset process.</p>
21-
* <p>Creating a password reset token does not invalidate existing tokens.</p>
21+
* <p>Creating a password reset token for the Customer produces the CustomerPasswordTokenCreated Message. The Message will include the token's value, if the token's validity is 60 minutes or less.</p>
2222
*
2323
* <hr>
2424
* <div class=code-example>

0 commit comments

Comments
 (0)