Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Translation Epic TS3 - Update the agent form request payload to include dynamicContent property #318

Open
5 tasks done
Tracked by #222
pratimasakinala opened this issue Apr 9, 2021 · 0 comments
Assignees
Labels
feature New feature or change that directly affects users

Comments

@pratimasakinala
Copy link
Collaborator

pratimasakinala commented Apr 9, 2021

Desired Use Case

Update the request payload to include dynamicContent key as below:

body: {
  "fullName": "",
  ...
  "dynamicContent": {
    "en-US": {
      "description": ""
    }
  }
}

The above example is valid for POST/PUT for agent route. The same structure will apply to POST/PUT for agent/translation route with the only change being the language code will be that of the language for which translation is being set.

Actual/Current Behavior

The current payload doesn't include dynamicContent or description properties.

Steps to Implement This Feature

  • Update the IAgentRequest interface & its associated class to include dynamicContent property.
  • Create a local variable dynamicContentDTO which is a new instance of AgentTranslation.
  • Create a payload for dynamicContentPayload using dynamicContentDTO as the requestPayload.
  • Update buildRequestPayload method in form.service to set the value of nestedProperty property on the requestPayload.
  • Create requests to create/update agent translations.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or change that directly affects users
Projects
None yet
Development

No branches or pull requests

1 participant