paypal-rest-client-0.1.0: A client to connect to PayPal's REST API (v1)

Copyright(C) 2016 Braden Walters
LicenseMIT (see LICENSE file)
MaintainerBraden Walters <vc@braden-walters.info>
Stabilityexperimental
Portabilityghc
Safe HaskellNone
LanguageHaskell2010

Network.Payments.PayPal.Types.Currency

Description

 

Synopsis

Documentation

newtype MonetaryAmount Source #

Type based on Decimal which is used for holding monetary amounts and can be encoded to and decoded from JSON. Encodes to a string, decodes from string or number.

Constructors

MonetaryAmount Decimal 

Instances

Eq MonetaryAmount Source # 
Fractional MonetaryAmount Source # 
Num MonetaryAmount Source # 
Ord MonetaryAmount Source # 
Read MonetaryAmount Source # 
Real MonetaryAmount Source # 
RealFrac MonetaryAmount Source # 
Show MonetaryAmount Source # 
ToJSON MonetaryAmount Source # 
FromJSON MonetaryAmount Source #