Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update GraphQL schema for default address input

Unknownf1e07e2c8e2f
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index bdb51e720e..4557630865 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -575,6 +575,21 @@ scalar DateTime
scalar Decimal
+input DefaultAddressInput {
+ firstName: String
+ lastName: String
+ companyName: String
+ streetAddress1: String
+ streetAddress2: String
+ city: String
+ cityArea: String
+ postalCode: String
+ country: String!
+ countryArea: String
+ phone: String
+ type: AddressTypeEnum
+}
+
enum DiscountValueTypeEnum {
FIXED
PERCENTAGE
@@ -965,7 +980,7 @@ type Mutations {
customerPasswordReset(input: CustomerPasswordResetInput!): CustomerPasswordReset
customerRegister(input: CustomerRegisterInput!): CustomerRegister
customerUpdate(id: ID!, input: CustomerInput!): CustomerUpdate
- customerAddressCreate(input: AddressInput!): CustomerAddressCreate
+ customerAddressCreate(input: DefaultAddressInput!): CustomerAddressCreate
customerSetDefaultAddress(id: ID!, type: AddressTypeEnum!): CustomerSetDefaultAddress
loggedUserUpdate(input: UserAddressInput!): LoggedUserUpdate
staffCreate(input: StaffCreateInput!): StaffCreate