Skip to content

Commit

Permalink
Merge pull request #458 from jfait/Issue-399-newDirectMarketingSubscr…
Browse files Browse the repository at this point in the history
…iptionSchema

Issue#399 - Implement a communications subscription Campaign extension.
  • Loading branch information
kstreeter authored Oct 30, 2018
2 parents c1e154d + f568987 commit 1841831
Show file tree
Hide file tree
Showing 9 changed files with 198 additions and 433 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## Release 0.9.7

[Released on October tBD, 2018](https://github.com/adobe/xdm/releases/tag/v0.9.7)

Fixed Issues

...

Merged Pull Requests

* #458 Implement a communications subscription Campaign extension.

## Release 0.9.6

[Released on September 28, 2018](https://github.com/adobe/xdm/releases/tag/v0.9.6)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"xdm:topicID": "40ac9bf9-721d-44ac-8cf3-fb04c089f3bf",
"xdm:type": "Campaign/SubscriptionList",
"xdm:subscriptionDate": "2017-09-26T15:52:25+00:00",
"xdm:emailAddress": "johnDoe@adobe.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"xdm:topicID": "50ac9bf9-721d-44ac-8cf3-fb04c089f3bf",
"xdm:type": "Campaign/SubscriptionList",
"xdm:subscriptionDate": "2017-02-26T15:52:25+00:00",
"xdm:emailAddress": "johnDoe@adobe.com",
"xdm:unsubscriptionDetails": {
"xdm:unsubscriptionDate": "2017-09-26T15:52:25+00:00",
"xdm:remarkID": "40ac9bf9-721d-44ac-8cf3-fb04c089f3be",
"xdm:remarkText": "Sorry, leave me alone. These are my personal comments"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/experience/campaign/notificationsubscription",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Notification subscription",
"type": "object",
"meta:extensible": true,
"description":
"Adobe Campaign notification subscriptions allow endusers opt into topics that can be used for communication such as Marketing subscription lists.",
"definitions": {
"notificationSubscription": {
"properties": {
"xdm:topicID": {
"title": "Topic Identifier",
"type": "string",
"description":
"The topic that the enduser has subscribed to and opted into notifications for."
},
"xdm:type": {
"title": "Subscription type",
"type": "string",
"description": "The type of notification/subscription."
},
"xdm:subscriptionDate": {
"title": "Subscription Date",
"type": "string",
"format": "date-time",
"description":
"Date and time when the enduser has subscribed to a notification topic. An end user is subscribed if they have a Subscription Date and the `unsubscriptiondetails/unsubscriptionDate` is empty."
},
"xdm:notificationTarget": {
"title": "Target/destination for the notification",
"description":
"Target/destination for where to send/receive the notification.",
"$ref":
"https://ns.adobe.com/experience/campaign/notificationsubscriptiontarget"
},
"xdm:unsubscriptionDetails": {
"title": "Adobe Campaign Notification Unsubscription details",
"description": "Adobe Campaign notification unsubscription details.",
"$ref":
"https://ns.adobe.com/experience/campaign/notificationunsubscriptiondetails"
}
}
},
"required": ["xdm:topicID", "xdm:type", "xdm:subscriptionDate"]
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/notificationSubscription"
}
],
"meta:status": "experimental"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id":
"https://ns.adobe.com/experience/campaign/notificationsubscriptiontarget",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Notification subscription target",
"type": "object",
"meta:extensible": true,
"description":
"Target/destination for where to send/receive the notification.",
"definitions": {
"notificationTarget": {
"properties": {
"xdm:emailAddress": {
"title": "Address",
"type": "string",
"format": "email",
"description":
"The technical address, e.g 'name@domain.com' as commonly defined in RFC2822 and subsequent standards."
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/notificationSubscriptionTarget"
}
],
"meta:status": "experimental"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id":
"https://ns.adobe.com/experience/campaign/notificationunsubscriptiondetails",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Notification unsubscription details",
"type": "object",
"meta:extensible": true,
"description":
"Adobe Campaign notification unsubscriptions allow endusers opt out after opting into topics that can be used for communication such as Marketing subscription lists.",
"definitions": {
"notificationUnSubscription": {
"properties": {
"xdm:unsubscriptionDate": {
"title": "Unsubscription Date",
"type": "string",
"format": "date-time",
"description":
"Date and time when the enduser has unsubscribed from a notification topic. When the subscription is registered the xdm:unsubscriptionDate must be empty."
},
"xdm:remarkID": {
"title": "Remark Identifier",
"type": "string",
"description":
"The pre defined remark that the enduser identified when unbsubscribing."
},
"xdm:remarkText": {
"title": "Remark text",
"type": "string",
"description":
"A customer comment/remark that the enduser provided when unbsubscribing."
}
}
},
"required": ["xdm:unsubscriptionDate"]
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/notificationUnSubscriptionDetails"
}
],
"meta:status": "experimental"
}
Loading

0 comments on commit 1841831

Please sign in to comment.