-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[shopsys] separated edit personal data mutation to allow change data …
…for self-managed user on b2b domain (#3601)
- Loading branch information
1 parent
4b45ff2
commit 67639d0
Showing
5 changed files
with
78 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...ql-types/ModelType/Customer/CustomerUser/Input/ChangeCompanyDataInputDecorator.types.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ChangeCompanyDataInputDecorator: | ||
type: input-object | ||
decorator: true | ||
inherits: | ||
- 'BillingAddressInputObjectDecorator' | ||
- 'CompanyInputObjectDecorator' |
33 changes: 6 additions & 27 deletions
33
...l-types/ModelType/Customer/CustomerUser/Input/ChangePersonalDataInputDecorator.types.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,11 @@ | ||
ChangePersonalDataInputDecorator: | ||
type: input-object | ||
decorator: true | ||
inherits: | ||
- 'NameInputObjectDecorator' | ||
- 'TelephoneInputObjectDecorator' | ||
config: | ||
fields: | ||
firstName: | ||
type: "String!" | ||
description: "Customer user first name" | ||
validation: | ||
- NotBlank: | ||
message: "Please enter first name" | ||
- Length: | ||
max: 100 | ||
maxMessage: "First name cannot be longer than {{ limit }} characters" | ||
lastName: | ||
type: "String!" | ||
description: "Customer user last name" | ||
validation: | ||
- NotBlank: | ||
message: "Please enter last name" | ||
- Length: | ||
max: 100 | ||
maxMessage: "Last name cannot be longer than {{ limit }} characters" | ||
telephone: | ||
type: "String!" | ||
description: "Date and time when the order was created" | ||
validation: | ||
- NotBlank: | ||
message: "Please enter telephone number" | ||
- Length: | ||
max: 30 | ||
maxMessage: "Telephone number cannot be longer than {{ limit }} characters" | ||
newsletterSubscription: | ||
type: "Boolean!" | ||
description: "Whether customer user should receive newsletters or not" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters