Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.CreditPayment
Description
Contains the types generated from the schema CreditPayment
Synopsis
- data CreditPayment = CreditPayment {
- creditPaymentAccount :: Maybe AccountMini
- creditPaymentAction :: Maybe CreditPaymentAction
- creditPaymentAmount :: Maybe Float
- creditPaymentApplied_to_invoice :: Maybe InvoiceMini
- creditPaymentCreated_at :: Maybe JsonDateTime
- creditPaymentCurrency :: Maybe Text
- creditPaymentId :: Maybe Text
- creditPaymentObject :: Maybe Text
- creditPaymentOriginal_credit_payment_id :: Maybe Text
- creditPaymentOriginal_invoice :: Maybe InvoiceMini
- creditPaymentRefund_transaction :: Maybe Transaction
- creditPaymentUpdated_at :: Maybe JsonDateTime
- creditPaymentUuid :: Maybe Text
- creditPaymentVoided_at :: Maybe JsonDateTime
- mkCreditPayment :: CreditPayment
- data CreditPaymentAction
Documentation
data CreditPayment Source #
Defines the object schema located at components.schemas.CreditPayment
in the specification.
Constructors
CreditPayment | |
Fields
|
Instances
FromJSON CreditPayment Source # | |
Defined in RecurlyClient.Types.CreditPayment Methods parseJSON :: Value -> Parser CreditPayment # parseJSONList :: Value -> Parser [CreditPayment] # | |
ToJSON CreditPayment Source # | |
Defined in RecurlyClient.Types.CreditPayment Methods toJSON :: CreditPayment -> Value # toEncoding :: CreditPayment -> Encoding # toJSONList :: [CreditPayment] -> Value # toEncodingList :: [CreditPayment] -> Encoding # | |
Show CreditPayment Source # | |
Defined in RecurlyClient.Types.CreditPayment Methods showsPrec :: Int -> CreditPayment -> ShowS # show :: CreditPayment -> String # showList :: [CreditPayment] -> ShowS # | |
Eq CreditPayment Source # | |
Defined in RecurlyClient.Types.CreditPayment Methods (==) :: CreditPayment -> CreditPayment -> Bool # (/=) :: CreditPayment -> CreditPayment -> Bool # |
mkCreditPayment :: CreditPayment Source #
Create a new CreditPayment
with all required fields.
data CreditPaymentAction Source #
Defines the enum schema located at components.schemas.CreditPayment.properties.action
in the specification.
The action for which the credit was created.
Constructors
CreditPaymentActionOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
CreditPaymentActionTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
CreditPaymentActionEnumPayment | Represents the JSON value |
CreditPaymentActionEnumReduction | Represents the JSON value |
CreditPaymentActionEnumRefund | Represents the JSON value |
CreditPaymentActionEnumWrite_off | Represents the JSON value |
Instances
FromJSON CreditPaymentAction Source # | |
Defined in RecurlyClient.Types.CreditPayment Methods parseJSON :: Value -> Parser CreditPaymentAction # parseJSONList :: Value -> Parser [CreditPaymentAction] # | |
ToJSON CreditPaymentAction Source # | |
Defined in RecurlyClient.Types.CreditPayment Methods toJSON :: CreditPaymentAction -> Value # toEncoding :: CreditPaymentAction -> Encoding # toJSONList :: [CreditPaymentAction] -> Value # toEncodingList :: [CreditPaymentAction] -> Encoding # | |
Show CreditPaymentAction Source # | |
Defined in RecurlyClient.Types.CreditPayment Methods showsPrec :: Int -> CreditPaymentAction -> ShowS # show :: CreditPaymentAction -> String # showList :: [CreditPaymentAction] -> ShowS # | |
Eq CreditPaymentAction Source # | |
Defined in RecurlyClient.Types.CreditPayment Methods (==) :: CreditPaymentAction -> CreditPaymentAction -> Bool # (/=) :: CreditPaymentAction -> CreditPaymentAction -> Bool # |