Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Create a new Notification with subscribers for a budget
- createNotification :: Text -> Text -> Notification -> NonEmpty Subscriber -> CreateNotification
- data CreateNotification
- cnAccountId :: Lens' CreateNotification Text
- cnBudgetName :: Lens' CreateNotification Text
- cnNotification :: Lens' CreateNotification Notification
- cnSubscribers :: Lens' CreateNotification (NonEmpty Subscriber)
- createNotificationResponse :: Int -> CreateNotificationResponse
- data CreateNotificationResponse
- cnrsResponseStatus :: Lens' CreateNotificationResponse Int
Creating a Request
:: Text | |
-> Text | |
-> Notification | |
-> NonEmpty Subscriber | |
-> CreateNotification |
Creates a value of CreateNotification
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cnAccountId
- Undocumented member.cnBudgetName
- Undocumented member.cnNotification
- Undocumented member.cnSubscribers
- Undocumented member.
data CreateNotification Source #
Request of CreateNotification
See: createNotification
smart constructor.
Request Lenses
cnAccountId :: Lens' CreateNotification Text Source #
Undocumented member.
cnBudgetName :: Lens' CreateNotification Text Source #
Undocumented member.
cnNotification :: Lens' CreateNotification Notification Source #
Undocumented member.
cnSubscribers :: Lens' CreateNotification (NonEmpty Subscriber) Source #
Undocumented member.
Destructuring the Response
createNotificationResponse Source #
Creates a value of CreateNotificationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cnrsResponseStatus
- -- | The response status code.
data CreateNotificationResponse Source #
Response of CreateNotification
See: createNotificationResponse
smart constructor.
Response Lenses
cnrsResponseStatus :: Lens' CreateNotificationResponse Int Source #
- - | The response status code.