recurly-client-0.1.0.0: Client for Recurly subscription management
Safe HaskellSafe-Inferred
LanguageHaskell2010

RecurlyClient.Types.Transaction

Description

Contains the types generated from the schema Transaction

Synopsis

Documentation

data Transaction Source #

Defines the object schema located at components.schemas.Transaction in the specification.

Constructors

Transaction 

Fields

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 A

TransactionAvs_checkEnumB

Represents the JSON value B

TransactionAvs_checkEnumC

Represents the JSON value C

TransactionAvs_checkEnumD

Represents the JSON value D

TransactionAvs_checkEnumE

Represents the JSON value E

TransactionAvs_checkEnumF

Represents the JSON value F

TransactionAvs_checkEnumG

Represents the JSON value G

TransactionAvs_checkEnumH

Represents the JSON value H

TransactionAvs_checkEnumI

Represents the JSON value I

TransactionAvs_checkEnumJ

Represents the JSON value J

TransactionAvs_checkEnumK

Represents the JSON value K

TransactionAvs_checkEnumL

Represents the JSON value L

TransactionAvs_checkEnumM

Represents the JSON value M

TransactionAvs_checkEnumN

Represents the JSON value N

TransactionAvs_checkEnumO

Represents the JSON value O

TransactionAvs_checkEnumP

Represents the JSON value P

TransactionAvs_checkEnumQ

Represents the JSON value Q

TransactionAvs_checkEnumR

Represents the JSON value R

TransactionAvs_checkEnumS

Represents the JSON value S

TransactionAvs_checkEnumT

Represents the JSON value T

TransactionAvs_checkEnumU

Represents the JSON value U

TransactionAvs_checkEnumV

Represents the JSON value V

TransactionAvs_checkEnumW

Represents the JSON value W

TransactionAvs_checkEnumX

Represents the JSON value X

TransactionAvs_checkEnumY

Represents the JSON value Y

TransactionAvs_checkEnumZ

Represents the JSON value Z

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 "automatic"

TransactionCollection_methodEnumManual

Represents the JSON value "manual"

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 D

TransactionCvv_checkEnumI

Represents the JSON value I

TransactionCvv_checkEnumM

Represents the JSON value M

TransactionCvv_checkEnumN

Represents the JSON value N

TransactionCvv_checkEnumP

Represents the JSON value P

TransactionCvv_checkEnumS

Represents the JSON value S

TransactionCvv_checkEnumU

Represents the JSON value U

TransactionCvv_checkEnumX

Represents the JSON value X

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 "customer"

TransactionIndicatorEnumMerchant

Represents the JSON value "merchant"

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 "incremental"

TransactionMerchant_reason_codeEnumNo_show

Represents the JSON value "no_show"

TransactionMerchant_reason_codeEnumResubmission

Represents the JSON value "resubmission"

TransactionMerchant_reason_codeEnumService_extension

Represents the JSON value "service_extension"

TransactionMerchant_reason_codeEnumSplit_shipment

Represents the JSON value "split_shipment"

TransactionMerchant_reason_codeEnumTop_up

Represents the JSON value "top_up"

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 "api"

TransactionOriginEnumChargeback

Represents the JSON value "chargeback"

TransactionOriginEnumExternal_recovery

Represents the JSON value "external_recovery"

TransactionOriginEnumForce_collect

Represents the JSON value "force_collect"

TransactionOriginEnumHpp

Represents the JSON value "hpp"

TransactionOriginEnumMerchant

Represents the JSON value "merchant"

TransactionOriginEnumRecurly_admin

Represents the JSON value "recurly_admin"

TransactionOriginEnumRecurlyjs

Represents the JSON value "recurlyjs"

TransactionOriginEnumRecurring

Represents the JSON value "recurring"

TransactionOriginEnumRefunded_externally

Represents the JSON value "refunded_externally"

TransactionOriginEnumTransparent

Represents the JSON value "transparent"

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 "chargeback"

TransactionStatusEnumDeclined

Represents the JSON value "declined"

TransactionStatusEnumError

Represents the JSON value "error"

TransactionStatusEnumPending

Represents the JSON value "pending"

TransactionStatusEnumProcessing

Represents the JSON value "processing"

TransactionStatusEnumScheduled

Represents the JSON value "scheduled"

TransactionStatusEnumSuccess

Represents the JSON value "success"

TransactionStatusEnumVoid

Represents the JSON value "void"

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 "authorization"

TransactionTypeEnumCapture

Represents the JSON value "capture"

TransactionTypeEnumPurchase

Represents the JSON value "purchase"

TransactionTypeEnumRefund

Represents the JSON value "refund"

TransactionTypeEnumVerify

Represents the JSON value "verify"