Skip to content

Commit ffa8644

Browse files
committed
Updated API from documentation release
1 parent 83cd8ad commit ffa8644

21 files changed

+280
-15
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"action": "addCustomerGroupAssignment",
3+
"customerGroupAssignment": {
4+
"customerGroup": {
5+
"id": "{{customer-group-id}}",
6+
"typeId": "customer-group"
7+
}
8+
}
9+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"customerGroup": {
3+
"typeId": "customer-group",
4+
"id": "customer-group-1"
5+
}
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"action": "removeCustomerGroupAssignment",
3+
"customerGroup": {
4+
"id": "{{customer-group-id}}",
5+
"typeId": "customer-group"
6+
}
7+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"action": "setCustomerGroupAssignments",
3+
"customerGroupAssignments": [
4+
{
5+
"customerGroup": {
6+
"id": "{{customer-group-id-1}}",
7+
"typeId": "customer-group"
8+
}
9+
},
10+
{
11+
"customerGroup": {
12+
"id": "{{customer-group-id-2}}",
13+
"typeId": "customer-group"
14+
}
15+
}
16+
]
17+
}
Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
#%RAML 1.0 Trait
22
queryParameters:
3-
priceCurrency:
3+
priceCurrency?:
44
type: CurrencyCode
5-
required: false
65
description: |
76
The currency used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection).
8-
priceCountry:
7+
priceCountry?:
98
type: CountryCode
10-
required: false
119
description: |
12-
The country used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection). Can only be used **in conjunction with** the `priceCurrency` parameter.
13-
priceCustomerGroup:
10+
The country used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection). It can be used only *in conjunction with* the `priceCurrency` parameter.
11+
priceCustomerGroup?:
1412
type: string
15-
required: false
1613
description: |
17-
`id` of an existing [CustomerGroup](ctp:api:type:CustomerGroup) used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection). Can only be used **in conjunction with** the `priceCurrency` parameter.
18-
priceChannel:
14+
`id` of an existing [CustomerGroup](ctp:api:type:CustomerGroup) used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection). It can be used only *in conjunction with* the `priceCurrency` parameter.
15+
priceCustomerGroupAssignments?:
16+
type: string[]
17+
(beta): true
18+
description: |
19+
IDs of existing [CustomerGroups](ctp:api:type:CustomerGroup) used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection), when using [multiple Customer Groups](/../api/customers-overview#customer-groups). It can be used only *in conjunction with* the `priceCurrency` parameter.
20+
priceChannel?:
1921
type: string
20-
required: false
2122
description: |
22-
`id` of an existing [Channel](ctp:api:type:Channel) used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection). Can only be used **in conjunction with** the `priceCurrency` parameter.
23+
`id` of an existing [Channel](ctp:api:type:Channel) used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection). It can be used only *in conjunction with* the `priceCurrency` parameter.

api-specs/api/types/customer/Customer.raml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,8 @@ properties:
140140
description: |
141141
Indicates whether the `password` is required for the Customer.
142142
default: Password
143+
customerGroupAssignments?:
144+
type: CustomerGroupAssignment[]
145+
(beta): true
146+
description: |
147+
Customer Groups that the Customer belongs to.

api-specs/api/types/customer/CustomerDraft.raml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,8 @@ properties:
137137
- Set to `Password` to make the `password` field required for the Customer.
138138
- Set to `ExternalAuth` when the password is not required for the Customer.
139139
default: Password
140+
customerGroupAssignments?:
141+
type: CustomerGroupAssignmentDraft[]
142+
(beta): true
143+
description: |
144+
Customer Groups to assign the Customer to.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#%RAML 1.0 DataType
2+
(package): Customer
3+
type: object
4+
(beta): true
5+
displayName: CustomerGroupAssignment
6+
properties:
7+
customerGroup:
8+
type: CustomerGroupReference
9+
description: |
10+
Reference to a Customer Group.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#%RAML 1.0 DataType
2+
(package): Customer
3+
type: object
4+
(beta): true
5+
displayName: CustomerGroupAssignmentDraft
6+
properties:
7+
customerGroup:
8+
type: CustomerGroupResourceIdentifier
9+
description: |
10+
ResourceIdentifier of a Customer Group.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#%RAML 1.0 DataType
2+
(package): Customer
3+
type: CustomerUpdateAction
4+
(beta): true
5+
displayName: CustomerAddCustomerGroupAssignmentAction
6+
discriminatorValue: addCustomerGroupAssignment
7+
example: !include ../../../examples/Customer/CustomerAddCustomerGroupAssignmentAction.json
8+
description: |
9+
Assigns a Customer Group to a Customer. This action generates the [CustomerGroupAssignmentAdded](ctp:api:type:CustomerGroupAssignmentAddedMessage) Message.
10+
properties:
11+
customerGroupAssignment:
12+
type: CustomerGroupAssignmentDraft
13+
description: |
14+
Customer Group to assign the Customer to.

0 commit comments

Comments
 (0)