Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.Transaction
Description
Contains the types generated from the schema Transaction
Synopsis
- data Transaction = Transaction {
- transactionAccount :: Maybe AccountMini
- transactionAction_result :: Maybe Object
- transactionAmount :: Maybe Float
- transactionAvs_check :: Maybe TransactionAvs_check
- transactionBackup_payment_method_used :: Maybe Bool
- transactionBilling_address :: Maybe AddressWithName
- transactionCollected_at :: Maybe JsonDateTime
- transactionCollection_method :: Maybe TransactionCollection_method
- transactionCreated_at :: Maybe JsonDateTime
- transactionCurrency :: Maybe Text
- transactionCustomer_message :: Maybe Text
- transactionCustomer_message_locale :: Maybe Text
- transactionCvv_check :: Maybe TransactionCvv_check
- transactionFraud_info :: Maybe TransactionFraudInfo
- transactionGateway_approval_code :: Maybe Text
- transactionGateway_message :: Maybe Text
- transactionGateway_reference :: Maybe Text
- transactionGateway_response_code :: Maybe Text
- transactionGateway_response_time :: Maybe Float
- transactionGateway_response_values :: Maybe Object
- transactionId :: Maybe Text
- transactionIndicator :: Maybe TransactionIndicator
- transactionInvoice :: Maybe InvoiceMini
- transactionIp_address_country :: Maybe Text
- transactionIp_address_v4 :: Maybe Text
- transactionMerchant_reason_code :: Maybe TransactionMerchant_reason_code
- transactionObject :: Maybe Text
- transactionOrigin :: Maybe TransactionOrigin
- transactionOriginal_transaction_id :: Maybe Text
- transactionPayment_gateway :: Maybe TransactionPayment_gateway
- transactionPayment_method :: Maybe PaymentMethod
- transactionRefunded :: Maybe Bool
- transactionStatus :: Maybe TransactionStatus
- transactionStatus_code :: Maybe Text
- transactionStatus_message :: Maybe Text
- transactionSubscription_ids :: Maybe [Text]
- transactionSuccess :: Maybe Bool
- transactionType :: Maybe TransactionType
- transactionUpdated_at :: Maybe JsonDateTime
- transactionUuid :: Maybe Text
- transactionVat_number :: Maybe Text
- transactionVoided_at :: Maybe JsonDateTime
- transactionVoided_by_invoice :: Maybe InvoiceMini
- mkTransaction :: Transaction
- data TransactionAvs_check
- = TransactionAvs_checkOther Value
- | TransactionAvs_checkTyped Text
- | TransactionAvs_checkEnumA
- | TransactionAvs_checkEnumB
- | TransactionAvs_checkEnumC
- | TransactionAvs_checkEnumD
- | TransactionAvs_checkEnumE
- | TransactionAvs_checkEnumF
- | TransactionAvs_checkEnumG
- | TransactionAvs_checkEnumH
- | TransactionAvs_checkEnumI
- | TransactionAvs_checkEnumJ
- | TransactionAvs_checkEnumK
- | TransactionAvs_checkEnumL
- | TransactionAvs_checkEnumM
- | TransactionAvs_checkEnumN
- | TransactionAvs_checkEnumO
- | TransactionAvs_checkEnumP
- | TransactionAvs_checkEnumQ
- | TransactionAvs_checkEnumR
- | TransactionAvs_checkEnumS
- | TransactionAvs_checkEnumT
- | TransactionAvs_checkEnumU
- | TransactionAvs_checkEnumV
- | TransactionAvs_checkEnumW
- | TransactionAvs_checkEnumX
- | TransactionAvs_checkEnumY
- | TransactionAvs_checkEnumZ
- data TransactionCollection_method
- data TransactionCvv_check
- data TransactionIndicator
- data TransactionMerchant_reason_code
- = TransactionMerchant_reason_codeOther Value
- | TransactionMerchant_reason_codeTyped Text
- | TransactionMerchant_reason_codeEnumIncremental
- | TransactionMerchant_reason_codeEnumNo_show
- | TransactionMerchant_reason_codeEnumResubmission
- | TransactionMerchant_reason_codeEnumService_extension
- | TransactionMerchant_reason_codeEnumSplit_shipment
- | TransactionMerchant_reason_codeEnumTop_up
- data TransactionOrigin
- = TransactionOriginOther Value
- | TransactionOriginTyped Text
- | TransactionOriginEnumApi
- | TransactionOriginEnumChargeback
- | TransactionOriginEnumExternal_recovery
- | TransactionOriginEnumForce_collect
- | TransactionOriginEnumHpp
- | TransactionOriginEnumMerchant
- | TransactionOriginEnumRecurly_admin
- | TransactionOriginEnumRecurlyjs
- | TransactionOriginEnumRecurring
- | TransactionOriginEnumRefunded_externally
- | TransactionOriginEnumTransparent
- data TransactionPayment_gateway = TransactionPayment_gateway {}
- mkTransactionPayment_gateway :: TransactionPayment_gateway
- data TransactionStatus
- = TransactionStatusOther Value
- | TransactionStatusTyped Text
- | TransactionStatusEnumChargeback
- | TransactionStatusEnumDeclined
- | TransactionStatusEnumError
- | TransactionStatusEnumPending
- | TransactionStatusEnumProcessing
- | TransactionStatusEnumScheduled
- | TransactionStatusEnumSuccess
- | TransactionStatusEnumVoid
- data TransactionType
Documentation
data Transaction Source #
Defines the object schema located at components.schemas.Transaction
in the specification.
Constructors
Transaction | |
Fields
|
Instances
FromJSON Transaction Source # | |
Defined in RecurlyClient.Types.Transaction | |
ToJSON Transaction Source # | |
Defined in RecurlyClient.Types.Transaction Methods toJSON :: Transaction -> Value # toEncoding :: Transaction -> Encoding # toJSONList :: [Transaction] -> Value # toEncodingList :: [Transaction] -> Encoding # | |
Show Transaction Source # | |
Defined in RecurlyClient.Types.Transaction Methods showsPrec :: Int -> Transaction -> ShowS # show :: Transaction -> String # showList :: [Transaction] -> ShowS # | |
Eq Transaction Source # | |
Defined in RecurlyClient.Types.Transaction |
mkTransaction :: Transaction Source #
Create a new Transaction
with all required fields.
data TransactionAvs_check Source #
Defines the enum schema located at components.schemas.Transaction.properties.avs_check
in the specification.
When processed, result from checking the overall AVS on the transaction.
Constructors
TransactionAvs_checkOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
TransactionAvs_checkTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
TransactionAvs_checkEnumA | Represents the JSON value |
TransactionAvs_checkEnumB | Represents the JSON value |
TransactionAvs_checkEnumC | Represents the JSON value |
TransactionAvs_checkEnumD | Represents the JSON value |
TransactionAvs_checkEnumE | Represents the JSON value |
TransactionAvs_checkEnumF | Represents the JSON value |
TransactionAvs_checkEnumG | Represents the JSON value |
TransactionAvs_checkEnumH | Represents the JSON value |
TransactionAvs_checkEnumI | Represents the JSON value |
TransactionAvs_checkEnumJ | Represents the JSON value |
TransactionAvs_checkEnumK | Represents the JSON value |
TransactionAvs_checkEnumL | Represents the JSON value |
TransactionAvs_checkEnumM | Represents the JSON value |
TransactionAvs_checkEnumN | Represents the JSON value |
TransactionAvs_checkEnumO | Represents the JSON value |
TransactionAvs_checkEnumP | Represents the JSON value |
TransactionAvs_checkEnumQ | Represents the JSON value |
TransactionAvs_checkEnumR | Represents the JSON value |
TransactionAvs_checkEnumS | Represents the JSON value |
TransactionAvs_checkEnumT | Represents the JSON value |
TransactionAvs_checkEnumU | Represents the JSON value |
TransactionAvs_checkEnumV | Represents the JSON value |
TransactionAvs_checkEnumW | Represents the JSON value |
TransactionAvs_checkEnumX | Represents the JSON value |
TransactionAvs_checkEnumY | Represents the JSON value |
TransactionAvs_checkEnumZ | Represents the JSON value |
Instances
FromJSON TransactionAvs_check Source # | |
Defined in RecurlyClient.Types.Transaction Methods parseJSON :: Value -> Parser TransactionAvs_check # parseJSONList :: Value -> Parser [TransactionAvs_check] # | |
ToJSON TransactionAvs_check Source # | |
Defined in RecurlyClient.Types.Transaction Methods toJSON :: TransactionAvs_check -> Value # toEncoding :: TransactionAvs_check -> Encoding # toJSONList :: [TransactionAvs_check] -> Value # toEncodingList :: [TransactionAvs_check] -> Encoding # | |
Show TransactionAvs_check Source # | |
Defined in RecurlyClient.Types.Transaction Methods showsPrec :: Int -> TransactionAvs_check -> ShowS # show :: TransactionAvs_check -> String # showList :: [TransactionAvs_check] -> ShowS # | |
Eq TransactionAvs_check Source # | |
Defined in RecurlyClient.Types.Transaction Methods (==) :: TransactionAvs_check -> TransactionAvs_check -> Bool # (/=) :: TransactionAvs_check -> TransactionAvs_check -> Bool # |
data TransactionCollection_method Source #
Defines the enum schema located at components.schemas.Transaction.properties.collection_method
in the specification.
The method by which the payment was collected.
Constructors
TransactionCollection_methodOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
TransactionCollection_methodTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
TransactionCollection_methodEnumAutomatic | Represents the JSON value |
TransactionCollection_methodEnumManual | Represents the JSON value |
Instances
data TransactionCvv_check Source #
Defines the enum schema located at components.schemas.Transaction.properties.cvv_check
in the specification.
When processed, result from checking the CVV/CVC value on the transaction.
Constructors
TransactionCvv_checkOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
TransactionCvv_checkTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
TransactionCvv_checkEnumD | Represents the JSON value |
TransactionCvv_checkEnumI | Represents the JSON value |
TransactionCvv_checkEnumM | Represents the JSON value |
TransactionCvv_checkEnumN | Represents the JSON value |
TransactionCvv_checkEnumP | Represents the JSON value |
TransactionCvv_checkEnumS | Represents the JSON value |
TransactionCvv_checkEnumU | Represents the JSON value |
TransactionCvv_checkEnumX | Represents the JSON value |
Instances
FromJSON TransactionCvv_check Source # | |
Defined in RecurlyClient.Types.Transaction Methods parseJSON :: Value -> Parser TransactionCvv_check # parseJSONList :: Value -> Parser [TransactionCvv_check] # | |
ToJSON TransactionCvv_check Source # | |
Defined in RecurlyClient.Types.Transaction Methods toJSON :: TransactionCvv_check -> Value # toEncoding :: TransactionCvv_check -> Encoding # toJSONList :: [TransactionCvv_check] -> Value # toEncodingList :: [TransactionCvv_check] -> Encoding # | |
Show TransactionCvv_check Source # | |
Defined in RecurlyClient.Types.Transaction Methods showsPrec :: Int -> TransactionCvv_check -> ShowS # show :: TransactionCvv_check -> String # showList :: [TransactionCvv_check] -> ShowS # | |
Eq TransactionCvv_check Source # | |
Defined in RecurlyClient.Types.Transaction Methods (==) :: TransactionCvv_check -> TransactionCvv_check -> Bool # (/=) :: TransactionCvv_check -> TransactionCvv_check -> Bool # |
data TransactionIndicator Source #
Defines the enum schema located at components.schemas.Transaction.properties.indicator
in the specification.
Must be sent for one-time transactions in order to provide context on which entity is submitting the transaction to ensure proper fraud checks are observed, such as 3DS. If the customer is in session, send `customer`. If this is a merchant initiated one-time transaction, send `merchant`.
Constructors
TransactionIndicatorOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
TransactionIndicatorTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
TransactionIndicatorEnumCustomer | Represents the JSON value |
TransactionIndicatorEnumMerchant | Represents the JSON value |
Instances
FromJSON TransactionIndicator Source # | |
Defined in RecurlyClient.Types.Transaction Methods parseJSON :: Value -> Parser TransactionIndicator # parseJSONList :: Value -> Parser [TransactionIndicator] # | |
ToJSON TransactionIndicator Source # | |
Defined in RecurlyClient.Types.Transaction Methods toJSON :: TransactionIndicator -> Value # toEncoding :: TransactionIndicator -> Encoding # toJSONList :: [TransactionIndicator] -> Value # toEncodingList :: [TransactionIndicator] -> Encoding # | |
Show TransactionIndicator Source # | |
Defined in RecurlyClient.Types.Transaction Methods showsPrec :: Int -> TransactionIndicator -> ShowS # show :: TransactionIndicator -> String # showList :: [TransactionIndicator] -> ShowS # | |
Eq TransactionIndicator Source # | |
Defined in RecurlyClient.Types.Transaction Methods (==) :: TransactionIndicator -> TransactionIndicator -> Bool # (/=) :: TransactionIndicator -> TransactionIndicator -> Bool # |
data TransactionMerchant_reason_code Source #
Defines the enum schema located at components.schemas.Transaction.properties.merchant_reason_code
in the specification.
This conditional parameter is useful for merchants in specific industries who need to submit one-time Merchant Initiated transactions in specific cases. Not all gateways support these methods, but will support a generic one-time Merchant Initiated transaction. Only use this if the initiator value is "merchant". Otherwise, it will be ignored. - Incremental: Send `incremental` with an additional purchase if the original authorization amount is not sufficient to cover the costs of your service or product. For example, if the customer adds goods or services or there are additional expenses. - No Show: Send `no_show` if you charge customers a fee due to an agreed-upon cancellation policy in your industry. - Resubmission: Send `resubmission` if you need to attempt collection on a declined transaction. You may also use the force collection behavior which has the same effect. - Service Extension: Send `service_extension` if you are in a service industry and the customer has increased/extended their service in some way. For example: adding a day onto a car rental agreement. - Split Shipment: Send `split_shipment` if you sell physical product and need to split up a shipment into multiple transactions when the customer is no longer in session. - Top Up: Send `top_up` if you process one-time transactions based on a pre-arranged agreement with your customer where there is a pre-arranged account balance that needs maintaining. For example, if the customer has agreed to maintain an account balance of 30.00 and their current balance is 20.00, the MIT amount would be at least 10.00 to meet that 30.00 threshold.
Constructors
TransactionMerchant_reason_codeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
TransactionMerchant_reason_codeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
TransactionMerchant_reason_codeEnumIncremental | Represents the JSON value |
TransactionMerchant_reason_codeEnumNo_show | Represents the JSON value |
TransactionMerchant_reason_codeEnumResubmission | Represents the JSON value |
TransactionMerchant_reason_codeEnumService_extension | Represents the JSON value |
TransactionMerchant_reason_codeEnumSplit_shipment | Represents the JSON value |
TransactionMerchant_reason_codeEnumTop_up | Represents the JSON value |
Instances
FromJSON TransactionMerchant_reason_code Source # | |
Defined in RecurlyClient.Types.Transaction Methods parseJSON :: Value -> Parser TransactionMerchant_reason_code # parseJSONList :: Value -> Parser [TransactionMerchant_reason_code] # | |
ToJSON TransactionMerchant_reason_code Source # | |
Defined in RecurlyClient.Types.Transaction | |
Show TransactionMerchant_reason_code Source # | |
Defined in RecurlyClient.Types.Transaction Methods showsPrec :: Int -> TransactionMerchant_reason_code -> ShowS # | |
Eq TransactionMerchant_reason_code Source # | |
Defined in RecurlyClient.Types.Transaction |
data TransactionOrigin Source #
Defines the enum schema located at components.schemas.Transaction.properties.origin
in the specification.
Describes how the transaction was triggered.
Constructors
TransactionOriginOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
TransactionOriginTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
TransactionOriginEnumApi | Represents the JSON value |
TransactionOriginEnumChargeback | Represents the JSON value |
TransactionOriginEnumExternal_recovery | Represents the JSON value |
TransactionOriginEnumForce_collect | Represents the JSON value |
TransactionOriginEnumHpp | Represents the JSON value |
TransactionOriginEnumMerchant | Represents the JSON value |
TransactionOriginEnumRecurly_admin | Represents the JSON value |
TransactionOriginEnumRecurlyjs | Represents the JSON value |
TransactionOriginEnumRecurring | Represents the JSON value |
TransactionOriginEnumRefunded_externally | Represents the JSON value |
TransactionOriginEnumTransparent | Represents the JSON value |
Instances
FromJSON TransactionOrigin Source # | |
Defined in RecurlyClient.Types.Transaction Methods parseJSON :: Value -> Parser TransactionOrigin # parseJSONList :: Value -> Parser [TransactionOrigin] # | |
ToJSON TransactionOrigin Source # | |
Defined in RecurlyClient.Types.Transaction Methods toJSON :: TransactionOrigin -> Value # toEncoding :: TransactionOrigin -> Encoding # toJSONList :: [TransactionOrigin] -> Value # toEncodingList :: [TransactionOrigin] -> Encoding # | |
Show TransactionOrigin Source # | |
Defined in RecurlyClient.Types.Transaction Methods showsPrec :: Int -> TransactionOrigin -> ShowS # show :: TransactionOrigin -> String # showList :: [TransactionOrigin] -> ShowS # | |
Eq TransactionOrigin Source # | |
Defined in RecurlyClient.Types.Transaction Methods (==) :: TransactionOrigin -> TransactionOrigin -> Bool # (/=) :: TransactionOrigin -> TransactionOrigin -> Bool # |
data TransactionPayment_gateway Source #
Defines the object schema located at components.schemas.Transaction.properties.payment_gateway
in the specification.
Constructors
TransactionPayment_gateway | |
Fields |
Instances
mkTransactionPayment_gateway :: TransactionPayment_gateway Source #
Create a new TransactionPayment_gateway
with all required fields.
data TransactionStatus Source #
Defines the enum schema located at components.schemas.Transaction.properties.status
in the specification.
The current transaction status. Note that the status may change, e.g. a `pending` transaction may become `declined` or `success` may later become `void`.
Constructors
TransactionStatusOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
TransactionStatusTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
TransactionStatusEnumChargeback | Represents the JSON value |
TransactionStatusEnumDeclined | Represents the JSON value |
TransactionStatusEnumError | Represents the JSON value |
TransactionStatusEnumPending | Represents the JSON value |
TransactionStatusEnumProcessing | Represents the JSON value |
TransactionStatusEnumScheduled | Represents the JSON value |
TransactionStatusEnumSuccess | Represents the JSON value |
TransactionStatusEnumVoid | Represents the JSON value |
Instances
FromJSON TransactionStatus Source # | |
Defined in RecurlyClient.Types.Transaction Methods parseJSON :: Value -> Parser TransactionStatus # parseJSONList :: Value -> Parser [TransactionStatus] # | |
ToJSON TransactionStatus Source # | |
Defined in RecurlyClient.Types.Transaction Methods toJSON :: TransactionStatus -> Value # toEncoding :: TransactionStatus -> Encoding # toJSONList :: [TransactionStatus] -> Value # toEncodingList :: [TransactionStatus] -> Encoding # | |
Show TransactionStatus Source # | |
Defined in RecurlyClient.Types.Transaction Methods showsPrec :: Int -> TransactionStatus -> ShowS # show :: TransactionStatus -> String # showList :: [TransactionStatus] -> ShowS # | |
Eq TransactionStatus Source # | |
Defined in RecurlyClient.Types.Transaction Methods (==) :: TransactionStatus -> TransactionStatus -> Bool # (/=) :: TransactionStatus -> TransactionStatus -> Bool # |
data TransactionType Source #
Defines the enum schema located at components.schemas.Transaction.properties.type
in the specification.
- `authorization` – verifies billing information and places a hold on money in the customer's account.
- `capture` – captures funds held by an authorization and completes a purchase.
- `purchase` – combines the authorization and capture in one transaction.
- `refund` – returns all or a portion of the money collected in a previous transaction to the customer.
- `verify` – a $0 or $1 transaction used to verify billing information which is immediately voided.
Constructors
TransactionTypeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
TransactionTypeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
TransactionTypeEnumAuthorization | Represents the JSON value |
TransactionTypeEnumCapture | Represents the JSON value |
TransactionTypeEnumPurchase | Represents the JSON value |
TransactionTypeEnumRefund | Represents the JSON value |
TransactionTypeEnumVerify | Represents the JSON value |
Instances
FromJSON TransactionType Source # | |
Defined in RecurlyClient.Types.Transaction Methods parseJSON :: Value -> Parser TransactionType # parseJSONList :: Value -> Parser [TransactionType] # | |
ToJSON TransactionType Source # | |
Defined in RecurlyClient.Types.Transaction Methods toJSON :: TransactionType -> Value # toEncoding :: TransactionType -> Encoding # toJSONList :: [TransactionType] -> Value # toEncodingList :: [TransactionType] -> Encoding # | |
Show TransactionType Source # | |
Defined in RecurlyClient.Types.Transaction Methods showsPrec :: Int -> TransactionType -> ShowS # show :: TransactionType -> String # showList :: [TransactionType] -> ShowS # | |
Eq TransactionType Source # | |
Defined in RecurlyClient.Types.Transaction Methods (==) :: TransactionType -> TransactionType -> Bool # (/=) :: TransactionType -> TransactionType -> Bool # |