Skip to content

Commit 79cc1f5

Browse files
committed
Regenerate with latest raml specs
1 parent a931136 commit 79cc1f5

File tree

45 files changed

+609
-232
lines changed

Some content is hidden

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

45 files changed

+609
-232
lines changed

src/commercetools/platform/client/by_project_key_request_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def channels(self) -> ByProjectKeyChannelsRequestBuilder:
167167
)
168168

169169
def customers(self) -> ByProjectKeyCustomersRequestBuilder:
170-
"""A customer is a person purchasing products. customers, Orders, Comments and Reviews can be associated to a customer."""
170+
"""A Customer is a person purchasing products. Carts, Orders, Quotes, Reviews and Payments can be associated to a Customer."""
171171
return ByProjectKeyCustomersRequestBuilder(
172172
project_key=self._project_key,
173173
client=self._client,

src/commercetools/platform/client/confirm/by_project_key_customers_email_confirm_request_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def post(
3434
headers: typing.Dict[str, str] = None,
3535
options: typing.Dict[str, typing.Any] = None,
3636
) -> typing.Optional["Customer"]:
37-
"""Verifies customer's email using a token."""
37+
"""Verifying the email of the Customer produces the [CustomerEmailVerified](ctp:api:type:CustomerEmailVerifiedMessage) Message."""
3838
headers = {} if headers is None else headers
3939
response = self._client._post(
4040
endpoint=f"/{self._project_key}/customers/email/confirm",

src/commercetools/platform/client/confirm/by_project_key_in_store_key_by_store_key_customers_email_confirm_request_builder.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ def post(
3737
headers: typing.Dict[str, str] = None,
3838
options: typing.Dict[str, typing.Any] = None,
3939
) -> typing.Optional["Customer"]:
40-
"""Verifies customer's email using a token."""
40+
"""The customer verifies the email using the token value.
41+
Verifying the email of the Customer produces the [CustomerEmailVerified](ctp:api:type:CustomerEmailVerifiedMessage) Message.
42+
43+
If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
44+
45+
"""
4146
headers = {} if headers is None else headers
4247
response = self._client._post(
4348
endpoint=f"/{self._project_key}/in-store/key={self._store_key}/customers/email/confirm",

src/commercetools/platform/client/confirm/by_project_key_in_store_key_by_store_key_me_email_confirm_request_builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import typing
88
import warnings
99

10-
from ...models.customer import Customer, CustomerEmailVerify
10+
from ...models.customer import Customer, MyCustomerEmailVerify
1111
from ...models.error import ErrorResponse
1212

1313
if typing.TYPE_CHECKING:
@@ -32,11 +32,12 @@ def __init__(
3232

3333
def post(
3434
self,
35-
body: "CustomerEmailVerify",
35+
body: "MyCustomerEmailVerify",
3636
*,
3737
headers: typing.Dict[str, str] = None,
3838
options: typing.Dict[str, typing.Any] = None,
3939
) -> typing.Optional["Customer"]:
40+
"""This is the last step in the [email verification process of a Customer](/../api/projects/customers#email-verification-of-customer-in-store)."""
4041
headers = {} if headers is None else headers
4142
response = self._client._post(
4243
endpoint=f"/{self._project_key}/in-store/key={self._store_key}/me/email/confirm",

src/commercetools/platform/client/confirm/by_project_key_me_email_confirm_request_builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import typing
88
import warnings
99

10-
from ...models.customer import Customer, CustomerEmailVerify
10+
from ...models.customer import Customer, MyCustomerEmailVerify
1111
from ...models.error import ErrorResponse
1212

1313
if typing.TYPE_CHECKING:
@@ -29,11 +29,12 @@ def __init__(
2929

3030
def post(
3131
self,
32-
body: "CustomerEmailVerify",
32+
body: "MyCustomerEmailVerify",
3333
*,
3434
headers: typing.Dict[str, str] = None,
3535
options: typing.Dict[str, typing.Any] = None,
3636
) -> typing.Optional["Customer"]:
37+
"""This is the last step in the [email verification process of a Customer](/../api/projects/customers#email-verification-of-customer)."""
3738
headers = {} if headers is None else headers
3839
response = self._client._post(
3940
endpoint=f"/{self._project_key}/me/email/confirm",

src/commercetools/platform/client/customers/by_project_key_customers_by_id_request_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def delete(
8787
headers: typing.Dict[str, str] = None,
8888
options: typing.Dict[str, typing.Any] = None,
8989
) -> typing.Optional["Customer"]:
90+
"""Deleting a Customer produces the [CustomerDeleted](ctp:api:type:CustomerDeletedMessage) Message."""
9091
headers = {} if headers is None else headers
9192
response = self._client._delete(
9293
endpoint=f"/{self._project_key}/customers/{self._id}",

src/commercetools/platform/client/customers/by_project_key_customers_key_by_key_request_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def delete(
8787
headers: typing.Dict[str, str] = None,
8888
options: typing.Dict[str, typing.Any] = None,
8989
) -> typing.Optional["Customer"]:
90+
"""Deleting a Customer produces the [CustomerDeleted](ctp:api:type:CustomerDeletedMessage) Message."""
9091
headers = {} if headers is None else headers
9192
response = self._client._delete(
9293
endpoint=f"/{self._project_key}/customers/key={self._key}",

src/commercetools/platform/client/customers/by_project_key_customers_request_builder.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ def with_email_token(
7777
)
7878

7979
def email_token(self) -> ByProjectKeyCustomersEmailTokenRequestBuilder:
80-
"""To verify a customer's email, an email token can be created. This should be embedded in a link and sent to the
81-
customer via email. When the customer clicks on the link, the "verify customer's email" endpoint should be called,
82-
which sets customer's isVerifiedEmail field to true.
83-
84-
"""
8580
return ByProjectKeyCustomersEmailTokenRequestBuilder(
8681
project_key=self._project_key,
8782
client=self._client,
@@ -106,13 +101,6 @@ def password_reset(self) -> ByProjectKeyCustomersPasswordResetRequestBuilder:
106101
)
107102

108103
def password_token(self) -> ByProjectKeyCustomersPasswordTokenRequestBuilder:
109-
"""The following workflow can be used to reset the customer's password:
110-
111-
* Create a password reset token and send it embedded in a link to the customer.
112-
* When the customer clicks on the link, the customer is retrieved with the token.
113-
* The customer enters a new password and the "reset customer's password" endpoint is called.
114-
115-
"""
116104
return ByProjectKeyCustomersPasswordTokenRequestBuilder(
117105
project_key=self._project_key,
118106
client=self._client,
@@ -180,9 +168,9 @@ def post(
180168
headers: typing.Dict[str, str] = None,
181169
options: typing.Dict[str, typing.Any] = None,
182170
) -> typing.Optional["CustomerSignInResult"]:
183-
"""Creates a customer. If an anonymous cart is passed in,
184-
then the cart is assigned to the created customer and the version number of the Cart will increase.
185-
If the ID of an anonymous session is given, all carts and orders will be assigned to the created customer.
171+
"""If the `anonymousCart` field is set on the [CustomerDraft](ctp:api:type:CustomerDraft), then the newly created Customer will be assigned to that [Cart](ctp:api:type:Cart).
172+
Similarly, if the `anonymousId` field is set, the Customer will be set on all [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [ShoppingLists](ctp:api:type:ShoppingList) and [Payments](ctp:api:type:Payment) with the same `anonymousId`.
173+
Creating a Customer produces the [CustomerCreated](ctp:api:type:CustomerCreatedMessage) Message.
186174
187175
"""
188176
headers = {} if headers is None else headers

src/commercetools/platform/client/customers/by_project_key_in_store_key_by_store_key_customers_by_id_request_builder.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,7 @@ def get(
4040
headers: typing.Dict[str, str] = None,
4141
options: typing.Dict[str, typing.Any] = None,
4242
) -> typing.Optional["Customer"]:
43-
"""Returns a customer by its ID from a specific Store.
44-
It also considers customers that do not have the stores field.
45-
If the customer exists in the project but the stores field references different stores,
46-
this method returns a ResourceNotFound error.
47-
48-
"""
43+
"""If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error."""
4944
headers = {} if headers is None else headers
5045
response = self._client._get(
5146
endpoint=f"/{self._project_key}/in-store/key={self._store_key}/customers/{self._id}",
@@ -70,11 +65,7 @@ def post(
7065
headers: typing.Dict[str, str] = None,
7166
options: typing.Dict[str, typing.Any] = None,
7267
) -> typing.Optional["Customer"]:
73-
"""Updates a customer in the store specified by {storeKey}.
74-
If the customer exists in the project but the stores field references a different store,
75-
this method returns a ResourceNotFound error.
76-
77-
"""
68+
"""If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error."""
7869
headers = {} if headers is None else headers
7970
response = self._client._post(
8071
endpoint=f"/{self._project_key}/in-store/key={self._store_key}/customers/{self._id}",
@@ -101,6 +92,11 @@ def delete(
10192
headers: typing.Dict[str, str] = None,
10293
options: typing.Dict[str, typing.Any] = None,
10394
) -> typing.Optional["Customer"]:
95+
"""Deleting a Customer produces the [CustomerDeleted](ctp:api:type:CustomerDeletedMessage) Message.
96+
97+
If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
98+
99+
"""
104100
headers = {} if headers is None else headers
105101
response = self._client._delete(
106102
endpoint=f"/{self._project_key}/in-store/key={self._store_key}/customers/{self._id}",

src/commercetools/platform/client/customers/by_project_key_in_store_key_by_store_key_customers_email_token_by_email_token_request_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def get(
4040
headers: typing.Dict[str, str] = None,
4141
options: typing.Dict[str, typing.Any] = None,
4242
) -> typing.Optional["Customer"]:
43+
"""If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error."""
4344
headers = {} if headers is None else headers
4445
response = self._client._get(
4546
endpoint=f"/{self._project_key}/in-store/key={self._store_key}/customers/email-token={self._email_token}",

0 commit comments

Comments
 (0)