Skip to content

Commit 3e6cfb2

Browse files
Updated GraphQL schema
1 parent d6665b3 commit 3e6cfb2

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed

api-specs/graphql/schema.sdl

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,96 @@ type Query implements CartQueryInterface & CustomerActiveCartInterface & OrderQu
469469
productSelectionAssignments(where: String, sort: [String!], limit: Int, offset: Int): ProductAssignmentQueryResult!
470470
}
471471

472+
type BusinessUnit implements Versioned & ReferenceExpandable {
473+
id: String!
474+
key: String!
475+
name: String!
476+
contactEmail: String
477+
addresses: [Address!]!
478+
defaultShippingAddress: Address
479+
defaultBillingAddress: Address
480+
defaultShippingAddressId: String
481+
defaultBillingAddressId: String
482+
shippingAddresses: [Address!]!
483+
billingAddresses: [Address!]!
484+
shippingAddressIds: [String!]!
485+
billingAddressIds: [String!]!
486+
status: BusinessUnitStatus!
487+
storesRef: [KeyReference!]
488+
stores: [Store!]
489+
storeMode: String
490+
unitType: BusinessUnitType!
491+
associates: [Associate!]!
492+
associateMode: BusinessUnitAssociateMode!
493+
inheritedAssociates: [InheritedAssociate!]
494+
custom: CustomFieldsType
495+
parentUnitRef: KeyReference
496+
parentUnit: BusinessUnit
497+
"""
498+
This field contains the BusinessUnits KeyReferences from the Company to the parent Division of this BusinessUnit in that order.
499+
"""
500+
ancestors: [BusinessUnit!]!
501+
"""
502+
This field contains the inherited stores from its parentUnit if storeMode is set to FromParent.
503+
"""
504+
inheritedStores: [InheritedStore!]
505+
topLevelUnitRef: KeyReference
506+
topLevelUnit: BusinessUnit!
507+
approvalRuleMode: BusinessUnitApprovalRuleMode!
508+
"""
509+
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
510+
"""
511+
customerGroupAssignments: [CustomerGroupAssignment!]
512+
version: Long!
513+
createdAt: DateTime!
514+
lastModifiedAt: DateTime!
515+
createdBy: Initiator
516+
lastModifiedBy: Initiator
517+
}
518+
519+
"""
520+
A customer is a person purchasing products. Carts, Orders and Reviews can be associated to a customer.
521+
"""
522+
type Customer implements Versioned & ReferenceExpandable {
523+
id: String!
524+
customerNumber: String
525+
email: String!
526+
addresses: [Address!]!
527+
defaultShippingAddressId: String
528+
defaultBillingAddressId: String
529+
shippingAddressIds: [String!]!
530+
billingAddressIds: [String!]!
531+
isEmailVerified: Boolean!
532+
customerGroupRef: Reference
533+
externalId: String
534+
key: String
535+
authenticationMode: AuthenticationMode
536+
firstName: String
537+
lastName: String
538+
middleName: String
539+
title: String
540+
locale: Locale
541+
salutation: String
542+
dateOfBirth: Date
543+
companyName: String
544+
vatId: String
545+
password: String
546+
customerGroup: CustomerGroup
547+
defaultShippingAddress: Address
548+
defaultBillingAddress: Address
549+
shippingAddresses: [Address!]!
550+
billingAddresses: [Address!]!
551+
storesRef: [KeyReference!]!
552+
stores: [Store!]!
553+
customerGroupAssignments: [CustomerGroupAssignment!]!
554+
custom: CustomFieldsType
555+
version: Long!
556+
createdAt: DateTime!
557+
lastModifiedAt: DateTime!
558+
createdBy: Initiator
559+
lastModifiedBy: Initiator
560+
}
561+
472562
"""
473563
API Clients can be used to obtain OAuth 2 access tokens. The secret is only shown once in the response of creating the API Client.
474564
"""

0 commit comments

Comments
 (0)