| Copyright | (c) 2018 Chris D'Aloisio |
|---|---|
| License | MPL-2.0 |
| Maintainer | chris.daloisio@bellroy.com |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
SuiteTalk.XML
Description
This module contains helpers for constructing valid SOAP requests to Netsuite.
Synopsis
- newtype Header = Header TokenPassport
- buildBody :: ToXML a => a -> String -> XML
- buildHeader :: Header -> XML
Documentation
Wrap the Header in a newtype for now to allow later expansion for other authentication types
Constructors
| Header TokenPassport |
buildBody :: ToXML a => a -> String -> XML Source #
Given any type that has an instance for ToXML, generate the body for the request
buildHeader :: Header -> XML Source #
Take a Header (which just wraps the TokenPassport) and convert it to XML