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 Jul 10, 2024
1 parent efca8fe commit d74a87f
Show file tree
Hide file tree
Showing 21 changed files with 90 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ properties:
value:
type: CustomFieldValue
description: The added [CustomFieldValue](ctp:api:type:CustomFieldValue) based on the [FieldType](ctp:api:type:FieldType).
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) to which the Custom Field was added.
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ properties:
type: CustomFieldValue
description: |
[CustomFieldValue](ctp:api:type:CustomFieldValue) based on the [FieldType](ctp:api:type:FieldType) before the [Set CustomField](ctp:api:type:BusinessUnitSetAddressCustomFieldAction) update action.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) of which the Custom Field was changed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ properties:
type: string
description: |
Name of the Custom Field that was removed.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) from which the Custom Field was removed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ properties:
type: string
description: |
`id` of the [Custom Type](ctp:api:type:Type) that was removed. Absent if there was no previous Custom Type present.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) from which the Custom Type was removed.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ properties:
type: string
description: |
`id` of the previous [Custom Type](ctp:api:type:Type). Absent if there was no previous Custom Type present.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) on which the Custom Field was set.
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ properties:
value:
type: CustomFieldValue
description: The added [CustomFieldValue](ctp:api:type:CustomFieldValue) based on the [FieldType](ctp:api:type:FieldType).
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) to which the Custom Field was added.
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ properties:
description: |
[CustomFieldValue](ctp:api:type:CustomFieldValue) based on the [FieldType](ctp:api:type:FieldType) before the [Set CustomField](ctp:api:type:CustomerSetAddressCustomFieldAction) update action.
When there has not been a Custom Field with the `name` on the Customer Address before, a [Customer Address Custom Field Added](ctp:api:type:CustomerAddressCustomFieldAddedMessage) Message is generated instead.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) of which the Custom Field was changed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ properties:
type: string
description: |
Name of the Custom Field that was removed.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) from which the Custom Field was removed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ properties:
type: string
description: |
`id` of the [Custom Type](ctp:api:type:Type) that was removed. Absent if there was no previous Custom Type present.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) from which the Custom Type was removed.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ properties:
type: string
description: |
`id` of the previous [Custom Type](ctp:api:type:Type). Absent if there was no previous Custom Type present.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) on which the Custom Field was set.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ properties:
value:
type: CustomFieldValue
description: The added [CustomFieldValue](ctp:api:type:CustomFieldValue) based on the [FieldType](ctp:api:type:FieldType).
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) to which the Custom Field was added.
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ properties:
type: CustomFieldValue
description: |
[CustomFieldValue](ctp:api:type:CustomFieldValue) based on the [FieldType](ctp:api:type:FieldType) before the [Set CustomField](ctp:api:type:BusinessUnitSetAddressCustomFieldAction) update action.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) of which the Custom Field was changed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ properties:
type: string
description: |
Name of the Custom Field that was removed.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) from which the Custom Field was removed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ properties:
type: string
description: |
`id` of the [Custom Type](ctp:api:type:Type) that was removed. Absent if there was no previous Custom Type present.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) from which the Custom Type was removed.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ properties:
type: string
description: |
`id` of the previous [Custom Type](ctp:api:type:Type). Absent if there was no previous Custom Type present.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) on which the Custom Field was set.
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ properties:
value:
type: CustomFieldValue
description: The added [CustomFieldValue](ctp:api:type:CustomFieldValue) based on the [FieldType](ctp:api:type:FieldType).
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) to which the Custom Field was added.
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ properties:
description: |
[CustomFieldValue](ctp:api:type:CustomFieldValue) based on the [FieldType](ctp:api:type:FieldType) before the [Set CustomField](ctp:api:type:CustomerSetAddressCustomFieldAction) update action.
When there has not been a Custom Field with the `name` on the Customer Address before, a [Customer Address Custom Field Added](ctp:api:type:CustomerAddressCustomFieldAddedMessage) Message is generated instead.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) of which the Custom Field was changed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ properties:
type: string
description: |
Name of the Custom Field that was removed.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) from which the Custom Field was removed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ properties:
type: string
description: |
`id` of the [Custom Type](ctp:api:type:Type) that was removed. Absent if there was no previous Custom Type present.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) from which the Custom Type was removed.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ properties:
type: string
description: |
`id` of the previous [Custom Type](ctp:api:type:Type). Absent if there was no previous Custom Type present.
addressId?:
type: string
description: |
`id` of the [Address](ctp:api:type:Address) on which the Custom Field was set.
10 changes: 10 additions & 0 deletions api-specs/graphql/schema.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -1380,29 +1380,34 @@ type BusinessUnitAddressChanged implements MessagePayload {
type BusinessUnitAddressCustomFieldAdded implements MessagePayload {
name: String!
value: Json!
addressId: String
type: String!
}

type BusinessUnitAddressCustomFieldChanged implements MessagePayload {
name: String!
value: Json!
oldValue: Json
addressId: String
type: String!
}

type BusinessUnitAddressCustomFieldRemoved implements MessagePayload {
name: String!
addressId: String
type: String!
}

type BusinessUnitAddressCustomTypeRemoved implements MessagePayload {
oldTypeId: String
addressId: String
type: String!
}

type BusinessUnitAddressCustomTypeSet implements MessagePayload {
customFields: CustomFieldsType!
oldTypeId: String
addressId: String
type: String!
}

Expand Down Expand Up @@ -3417,29 +3422,34 @@ type CustomerAddressChanged implements MessagePayload {
type CustomerAddressCustomFieldAdded implements MessagePayload {
name: String!
value: Json!
addressId: String
type: String!
}

type CustomerAddressCustomFieldChanged implements MessagePayload {
name: String!
value: Json!
previousValue: Json
addressId: String
type: String!
}

type CustomerAddressCustomFieldRemoved implements MessagePayload {
name: String!
addressId: String
type: String!
}

type CustomerAddressCustomTypeRemoved implements MessagePayload {
previousTypeId: String
addressId: String
type: String!
}

type CustomerAddressCustomTypeSet implements MessagePayload {
customFields: CustomFieldsType!
previousTypeId: String
addressId: String
type: String!
}

Expand Down

0 comments on commit d74a87f

Please sign in to comment.