fineract-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100126 <...@git.apache.org>
Subject [GitHub] incubator-fineract pull request #288: Email campaign Feature
Date Mon, 06 Mar 2017 08:55:41 GMT
Github user nazeer1100126 commented on a diff in the pull request:

    https://github.com/apache/incubator-fineract/pull/288#discussion_r104357452
  
    --- Diff: fineract-provider/src/main/java/org/apache/fineract/commands/service/CommandWrapperBuilder.java
---
    @@ -2868,4 +2868,82 @@ public CommandWrapperBuilder deleteSmsCampaign(final Long resourceId)
{
             this.href = "/smscampaigns/"+resourceId;
             return this;
         }
    +	
    +    public CommandWrapperBuilder createEmail() {
    +        this.actionName = "CREATE";
    +        this.entityName = "EMAIL";
    +        this.entityId = null;
    +        this.href = "/emailcampaigns/template";
    +        return this;
    +    }
    +
    +    public CommandWrapperBuilder updateEmail(final Long resourceId) {
    +        this.actionName = "UPDATE";
    +        this.entityName = "EMAIL";
    +        this.entityId = resourceId;
    +        this.href = "/emailcampaigns/" + resourceId;
    +        return this;
    +    }
    +
    +    public CommandWrapperBuilder deleteEmail(final Long resourceId) {
    +        this.actionName = "DELETE";
    +        this.entityName = "EMAIL";
    +        this.entityId = resourceId;
    +        this.href = "/emailcampaigns/" + resourceId;
    --- End diff --
    
    deleteEmail has href as "/emailcampaigns/" + resourceId is this corrrect?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message