Skip to content

Commit

Permalink
Updated API from documentation release
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Jan 12, 2024
1 parent 04a9698 commit 5804c06
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 59 deletions.
1 change: 0 additions & 1 deletion api-specs/api/types/customer/AuthenticationMode.raml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
(package): Customer
displayName: AuthenticationMode
type: string
(beta): true
enum:
- Password
- ExternalAuth
Expand Down
1 change: 0 additions & 1 deletion api-specs/api/types/customer/Customer.raml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ properties:
- If any Stores are specified, the Customer can only log in using the [Password Flow for Customers in a Store](/../api/authorization#password-flow-for-customers-in-a-store) for those specific Stores.
authenticationMode:
type: AuthenticationMode
(beta): true
description: |
Indicates whether the `password` is required for the Customer.
default: Password
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
(package): Customer
(docs-uri): https://docs.commercetools.com/api/projects/customers#set-authentication-mode
type: CustomerUpdateAction
(beta): true
displayName: CustomerSetAuthenticationModeAction
discriminatorValue: setAuthenticationMode
example: !include ../../../examples/Customer/CustomerSetAuthenticationModeAction.json
Expand Down
109 changes: 53 additions & 56 deletions api-specs/graphql/schema.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -726,10 +726,10 @@ type ApprovalFlowRejection {
}

input ApprovalFlowUpdateAction {
approve: ApproveApprovalFlow
reject: RejectApprovalFlow
setCustomField: SetApprovalFlowCustomField
setCustomType: SetApprovalFlowCustomType
approve: ApproveApprovalFlow
}

type ApprovalRule implements Versioned {
Expand Down Expand Up @@ -821,13 +821,13 @@ type ApprovalRuleStatusSet implements MessagePayload {
}

input ApprovalRuleUpdateAction {
setApprovers: SetApprovalRuleApprovers
setKey: SetApprovalRuleKey
setName: SetApprovalRuleName
setDescription: SetApprovalRuleDescription
setPredicate: SetApprovalRulePredicate
setRequesters: SetApprovalRuleRequesters
setStatus: SetApprovalRuleStatus
setApprovers: SetApprovalRuleApprovers
}

input ApproveApprovalFlow {
Expand Down Expand Up @@ -1213,7 +1213,7 @@ input AttributeTypeDraft {
ltext: SimpleAttributeTypeDraft
}

"AuthenticationMode values. BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
"AuthenticationMode values."
enum AuthenticationMode {
ExternalAuth
Password
Expand Down Expand Up @@ -1251,17 +1251,6 @@ input AzureServiceBusDestinationInput {
connectionString: String!
}

input CartDiscountValueBaseMoneyInput {
centPrecision: MoneyInput
highPrecision: HighPrecisionMoneyInput

"CurrencyCode and centAmount are deprecated. Please use `Money`(centPrecision) or `HighPrecisionMoney`(highPrecision)."
currencyCode: Currency

"CurrencyCode and centAmount are deprecated. Please use `Money`(centPrecision) or `HighPrecisionMoney`(highPrecision)."
centAmount: Long
}

interface BaseMoney {
type: String!
currencyCode: Currency!
Expand Down Expand Up @@ -1825,6 +1814,17 @@ interface CartDiscountValue {
type: String!
}

input CartDiscountValueBaseMoneyInput {
centPrecision: MoneyInput
highPrecision: HighPrecisionMoneyInput

"CurrencyCode and centAmount are deprecated. Please use `Money`(centPrecision) or `HighPrecisionMoney`(highPrecision)."
currencyCode: Currency

"CurrencyCode and centAmount are deprecated. Please use `Money`(centPrecision) or `HighPrecisionMoney`(highPrecision)."
centAmount: Long
}

input CartDiscountValueInput {
relative: RelativeDiscountValueInput
absolute: AbsoluteDiscountValueInput
Expand Down Expand Up @@ -1874,14 +1874,14 @@ type CartLimitsProjection {
}

enum CartOrigin {
"The cart was created by our platform and belongs to a Quote."
Quote
"The cart was created by the customer. This is the default value"
Customer

"The cart was created by the merchant on behalf of the customer"
Merchant

"The cart was created by the customer. This is the default value"
Customer
"The cart was created by our platform and belongs to a Quote."
Quote
}

"Fields to access carts. Includes direct access to a single cart and searching for carts."
Expand Down Expand Up @@ -3665,8 +3665,6 @@ input CustomerSignUpDraft {
customerGroup: ResourceIdentifierInput
isEmailVerified: Boolean
anonymousId: String

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
authenticationMode: AuthenticationMode
}

Expand Down Expand Up @@ -3957,6 +3955,13 @@ input DiscountCodeUpdateAction {
setValidUntil: SetDiscountCodeValidUntil
}

type DiscountOnTotalPrice {
discountedAmount: BaseMoney!
includedDiscounts: [DiscountedTotalPricePortion!]!
discountedNetAmount: BaseMoney
discountedGrossAmount: BaseMoney
}

type DiscountedLineItemPortion {
discount: CartDiscount
discountRef: Reference!
Expand Down Expand Up @@ -4273,8 +4278,8 @@ input FieldTypeSetTypeDraft {
}

type FixedPriceDiscountValue implements CartDiscountValue {
money: [BaseMoney!]!
type: String!
money: [BaseMoney!]!
}

input FixedPriceDiscountValueInput {
Expand Down Expand Up @@ -5395,16 +5400,25 @@ type Mutation {
createDiscountCode(draft: DiscountCodeDraft!): DiscountCode
updateDiscountCode(id: String!, version: Long!, actions: [DiscountCodeUpdateAction!]!): DiscountCode
deleteDiscountCode(id: String!, version: Long!): DiscountCode
createCartDiscount(draft: CartDiscountDraft!): CartDiscount
createCartDiscount(draft: CartDiscountDraft!,

"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
storeKey: KeyReferenceInput): CartDiscount
updateCartDiscount(version: Long!, actions: [CartDiscountUpdateAction!]!,

"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
storeKey: KeyReferenceInput,

"Queries with specified ID"
id: String,

"Queries with specified key"
key: String): CartDiscount
deleteCartDiscount(version: Long!,

"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
storeKey: KeyReferenceInput,

"Queries with specified ID"
id: String,

Expand Down Expand Up @@ -6439,17 +6453,6 @@ type OrderCustomFieldRemoved implements MessagePayload & OrderMessagePayload {
type: String!
}

type OrderCustomTypeRemoved implements MessagePayload & OrderMessagePayload {
previousTypeId: String
type: String!
}

type OrderCustomTypeSet implements MessagePayload & OrderMessagePayload {
customFields: CustomFieldsType!
previousTypeId: String
type: String!
}

type OrderCustomLineItemAdded implements MessagePayload & OrderMessagePayload {
customLineItem: CustomLineItem!
type: String!
Expand Down Expand Up @@ -6478,6 +6481,17 @@ type OrderCustomLineItemRemoved implements MessagePayload & OrderMessagePayload
type: String!
}

type OrderCustomTypeRemoved implements MessagePayload & OrderMessagePayload {
previousTypeId: String
type: String!
}

type OrderCustomTypeSet implements MessagePayload & OrderMessagePayload {
customFields: CustomFieldsType!
previousTypeId: String
type: String!
}

type OrderCustomerEmailSet implements MessagePayload & OrderMessagePayload {
email: String
oldEmail: String
Expand Down Expand Up @@ -7218,8 +7232,6 @@ type ProductAssignment {
productSelectionRef: Reference!
productSelection: ProductSelection
variantSelection: ProductVariantSelection

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
variantExclusion: ProductVariantExclusion
}

Expand Down Expand Up @@ -7487,8 +7499,6 @@ type ProductOfSelection {
productRef: Reference!
product: Product
variantSelection: ProductVariantSelection

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
variantExclusion: ProductVariantExclusion
}

Expand Down Expand Up @@ -7904,7 +7914,7 @@ enum ProductSelectionMode {
"Mode of Product Selection used to include a specific list of individual Products"
Individual

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta. Mode of Product Selection used to exclude a specific list of individual Products"
"Mode of Product Selection used to exclude a specific list of individual Products"
IndividualExclusion
}

Expand All @@ -7915,7 +7925,6 @@ type ProductSelectionProductAdded implements MessagePayload {
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type ProductSelectionProductExcluded implements MessagePayload {
variantExclusion: ProductVariantExclusion
product: Product
Expand Down Expand Up @@ -7961,20 +7970,15 @@ input ProductSelectionSettingInActionInput {
input ProductSelectionUpdateAction {
addProduct: AddProductSelectionProduct
changeName: ChangeProductSelectionName

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
excludeProduct: ExcludeProductSelectionProduct
removeProduct: RemoveProductSelectionProduct
setCustomField: SetProductSelectionCustomField
setCustomType: SetProductSelectionCustomType
setKey: SetProductSelectionKey

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
setVariantExclusion: SetProductSelectionVariantExclusion
setVariantSelection: SetProductSelectionVariantSelection
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type ProductSelectionVariantExclusionChanged implements MessagePayload {
oldVariantExclusion: ProductVariantExclusion
newVariantExclusion: ProductVariantExclusion
Expand Down Expand Up @@ -8227,12 +8231,10 @@ type ProductVariantDeleted implements MessagePayload {
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type ProductVariantExclusion {
skus: [String!]!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input ProductVariantExclusionDraft {
skus: [String!]
}
Expand Down Expand Up @@ -8280,6 +8282,7 @@ type ProjectCustomLimitsProjection {
products: ProductLimitsProjection!
shoppingLists: ShoppingListLimitsProjection!
extensions: ExtensionLimitsProjection!
subscriptions: SubscriptionsLimitsProjection!
productDiscounts: ProductDiscountLimitsProjection!
cartDiscounts: CartDiscountLimitsProjection!
orderEdits: OrderEditLimitsProjection!
Expand Down Expand Up @@ -9662,7 +9665,6 @@ type ScoreShippingRateInputDraftOutput implements ShippingRateInputDraftOutput {
}

input SearchFacetInput {
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
model: SearchFacetModelInput
string: String
}
Expand All @@ -9673,7 +9675,6 @@ input SearchFacetModelInput {
}

input SearchFilterInput {
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
model: SearchFilterModelInput
string: String
}
Expand Down Expand Up @@ -9752,7 +9753,6 @@ type SelectionOfProduct {
productSelectionRef: Reference!
productSelection: ProductSelection
variantSelection: ProductVariantSelection
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
variantExclusion: ProductVariantExclusion
createdAt: DateTime!
}
Expand Down Expand Up @@ -13231,6 +13231,10 @@ input SubscriptionUpdateAction {
setMessages: SetSubscriptionMessages
}

type SubscriptionsLimitsProjection {
maxSubscriptions: Limit!
}

type SuggestResult {
searchKeywords: [SuggestResultEntry!]!
}
Expand Down Expand Up @@ -13528,13 +13532,6 @@ type TimeType implements FieldType {
name: String!
}

type DiscountOnTotalPrice {
discountedAmount: BaseMoney!
includedDiscounts: [DiscountedTotalPricePortion!]!
discountedNetAmount: BaseMoney
discountedGrossAmount: BaseMoney
}

type TrackingData {
trackingId: String
carrier: String
Expand Down

0 comments on commit 5804c06

Please sign in to comment.