Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.Invoice
Description
Contains the types generated from the schema Invoice
Synopsis
- data Invoice = Invoice {
- invoiceAccount :: Maybe AccountMini
- invoiceAddress :: Maybe InvoiceAddress
- invoiceBalance :: Maybe Float
- invoiceBilling_info_id :: Maybe Text
- invoiceBusiness_entity_id :: Maybe Text
- invoiceClosed_at :: Maybe JsonDateTime
- invoiceCollection_method :: Maybe InvoiceCollection_method
- invoiceCreated_at :: Maybe JsonDateTime
- invoiceCredit_payments :: Maybe [CreditPayment]
- invoiceCurrency :: Maybe Text
- invoiceCustomer_notes :: Maybe Text
- invoiceDiscount :: Maybe Float
- invoiceDue_at :: Maybe JsonDateTime
- invoiceDunning_campaign_id :: Maybe Text
- invoiceDunning_events_sent :: Maybe Int
- invoiceFinal_dunning_event :: Maybe Bool
- invoiceHas_more_line_items :: Maybe Bool
- invoiceId :: Maybe Text
- invoiceLine_items :: Maybe [LineItem]
- invoiceNet_terms :: Maybe Int
- invoiceNet_terms_type :: Maybe InvoiceNet_terms_type
- invoiceNumber :: Maybe Text
- invoiceObject :: Maybe Text
- invoiceOrigin :: Maybe InvoiceOrigin
- invoicePaid :: Maybe Float
- invoicePo_number :: Maybe Text
- invoicePrevious_invoice_id :: Maybe Text
- invoiceRefundable_amount :: Maybe Float
- invoiceShipping_address :: Maybe ShippingAddress
- invoiceState :: Maybe InvoiceState
- invoiceSubscription_ids :: Maybe [Text]
- invoiceSubtotal :: Maybe Float
- invoiceTax :: Maybe Float
- invoiceTax_info :: Maybe TaxInfo
- invoiceTerms_and_conditions :: Maybe Text
- invoiceTotal :: Maybe Float
- invoiceTransactions :: Maybe [Transaction]
- invoiceType :: Maybe InvoiceType
- invoiceUpdated_at :: Maybe JsonDateTime
- invoiceUsed_tax_service :: Maybe Bool
- invoiceUuid :: Maybe Text
- invoiceVat_number :: Maybe Text
- invoiceVat_reverse_charge_notes :: Maybe Text
- mkInvoice :: Invoice
- data InvoiceCollection_method
- data InvoiceNet_terms_type
- data InvoiceOrigin
- = InvoiceOriginOther Value
- | InvoiceOriginTyped Text
- | InvoiceOriginEnumCarryforward_credit
- | InvoiceOriginEnumCarryforward_gift_credit
- | InvoiceOriginEnumCredit
- | InvoiceOriginEnumExternal_refund
- | InvoiceOriginEnumGift_card
- | InvoiceOriginEnumImmediate_change
- | InvoiceOriginEnumImport
- | InvoiceOriginEnumLine_item_refund
- | InvoiceOriginEnumOpen_amount_refund
- | InvoiceOriginEnumPrepayment
- | InvoiceOriginEnumPurchase
- | InvoiceOriginEnumRefund
- | InvoiceOriginEnumRenewal
- | InvoiceOriginEnumTermination
- | InvoiceOriginEnumUsage_correction
- | InvoiceOriginEnumWrite_off
- data InvoiceState
- data InvoiceType
Documentation
Defines the object schema located at components.schemas.Invoice
in the specification.
Constructors
Invoice | |
Fields
|
data InvoiceCollection_method Source #
Defines the enum schema located at components.schemas.Invoice.properties.collection_method
in the specification.
An automatic invoice means a corresponding transaction is run using the account's billing information at the same time the invoice is created. Manual invoices are created without a corresponding transaction. The merchant must enter a manual payment transaction or have the customer pay the invoice with an automatic method, like credit card, PayPal, Amazon, or ACH bank payment.
Constructors
InvoiceCollection_methodOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
InvoiceCollection_methodTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
InvoiceCollection_methodEnumAutomatic | Represents the JSON value |
InvoiceCollection_methodEnumManual | Represents the JSON value |
Instances
FromJSON InvoiceCollection_method Source # | |
Defined in RecurlyClient.Types.Invoice Methods parseJSON :: Value -> Parser InvoiceCollection_method # parseJSONList :: Value -> Parser [InvoiceCollection_method] # | |
ToJSON InvoiceCollection_method Source # | |
Defined in RecurlyClient.Types.Invoice Methods toJSON :: InvoiceCollection_method -> Value # toEncoding :: InvoiceCollection_method -> Encoding # toJSONList :: [InvoiceCollection_method] -> Value # | |
Show InvoiceCollection_method Source # | |
Defined in RecurlyClient.Types.Invoice Methods showsPrec :: Int -> InvoiceCollection_method -> ShowS # show :: InvoiceCollection_method -> String # showList :: [InvoiceCollection_method] -> ShowS # | |
Eq InvoiceCollection_method Source # | |
Defined in RecurlyClient.Types.Invoice Methods (==) :: InvoiceCollection_method -> InvoiceCollection_method -> Bool # (/=) :: InvoiceCollection_method -> InvoiceCollection_method -> Bool # |
data InvoiceNet_terms_type Source #
Defines the enum schema located at components.schemas.Invoice.properties.net_terms_type
in the specification.
Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month.
Constructors
InvoiceNet_terms_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
InvoiceNet_terms_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
InvoiceNet_terms_typeEnumNet | Represents the JSON value |
InvoiceNet_terms_typeEnumEom | Represents the JSON value |
Instances
FromJSON InvoiceNet_terms_type Source # | |
Defined in RecurlyClient.Types.Invoice Methods parseJSON :: Value -> Parser InvoiceNet_terms_type # parseJSONList :: Value -> Parser [InvoiceNet_terms_type] # | |
ToJSON InvoiceNet_terms_type Source # | |
Defined in RecurlyClient.Types.Invoice Methods toJSON :: InvoiceNet_terms_type -> Value # toEncoding :: InvoiceNet_terms_type -> Encoding # toJSONList :: [InvoiceNet_terms_type] -> Value # toEncodingList :: [InvoiceNet_terms_type] -> Encoding # | |
Show InvoiceNet_terms_type Source # | |
Defined in RecurlyClient.Types.Invoice Methods showsPrec :: Int -> InvoiceNet_terms_type -> ShowS # show :: InvoiceNet_terms_type -> String # showList :: [InvoiceNet_terms_type] -> ShowS # | |
Eq InvoiceNet_terms_type Source # | |
Defined in RecurlyClient.Types.Invoice Methods (==) :: InvoiceNet_terms_type -> InvoiceNet_terms_type -> Bool # (/=) :: InvoiceNet_terms_type -> InvoiceNet_terms_type -> Bool # |
data InvoiceOrigin Source #
Defines the enum schema located at components.schemas.Invoice.properties.origin
in the specification.
The event that created the invoice.
Constructors
InvoiceOriginOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
InvoiceOriginTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
InvoiceOriginEnumCarryforward_credit | Represents the JSON value |
InvoiceOriginEnumCarryforward_gift_credit | Represents the JSON value |
InvoiceOriginEnumCredit | Represents the JSON value |
InvoiceOriginEnumExternal_refund | Represents the JSON value |
InvoiceOriginEnumGift_card | Represents the JSON value |
InvoiceOriginEnumImmediate_change | Represents the JSON value |
InvoiceOriginEnumImport | Represents the JSON value |
InvoiceOriginEnumLine_item_refund | Represents the JSON value |
InvoiceOriginEnumOpen_amount_refund | Represents the JSON value |
InvoiceOriginEnumPrepayment | Represents the JSON value |
InvoiceOriginEnumPurchase | Represents the JSON value |
InvoiceOriginEnumRefund | Represents the JSON value |
InvoiceOriginEnumRenewal | Represents the JSON value |
InvoiceOriginEnumTermination | Represents the JSON value |
InvoiceOriginEnumUsage_correction | Represents the JSON value |
InvoiceOriginEnumWrite_off | Represents the JSON value |
Instances
FromJSON InvoiceOrigin Source # | |
Defined in RecurlyClient.Types.Invoice Methods parseJSON :: Value -> Parser InvoiceOrigin # parseJSONList :: Value -> Parser [InvoiceOrigin] # | |
ToJSON InvoiceOrigin Source # | |
Defined in RecurlyClient.Types.Invoice Methods toJSON :: InvoiceOrigin -> Value # toEncoding :: InvoiceOrigin -> Encoding # toJSONList :: [InvoiceOrigin] -> Value # toEncodingList :: [InvoiceOrigin] -> Encoding # | |
Show InvoiceOrigin Source # | |
Defined in RecurlyClient.Types.Invoice Methods showsPrec :: Int -> InvoiceOrigin -> ShowS # show :: InvoiceOrigin -> String # showList :: [InvoiceOrigin] -> ShowS # | |
Eq InvoiceOrigin Source # | |
Defined in RecurlyClient.Types.Invoice Methods (==) :: InvoiceOrigin -> InvoiceOrigin -> Bool # (/=) :: InvoiceOrigin -> InvoiceOrigin -> Bool # |
data InvoiceState Source #
Defines the enum schema located at components.schemas.Invoice.properties.state
in the specification.
Constructors
InvoiceStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
InvoiceStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
InvoiceStateEnumOpen | Represents the JSON value |
InvoiceStateEnumPending | Represents the JSON value |
InvoiceStateEnumProcessing | Represents the JSON value |
InvoiceStateEnumPast_due | Represents the JSON value |
InvoiceStateEnumPaid | Represents the JSON value |
InvoiceStateEnumClosed | Represents the JSON value |
InvoiceStateEnumFailed | Represents the JSON value |
InvoiceStateEnumVoided | Represents the JSON value |
Instances
FromJSON InvoiceState Source # | |
Defined in RecurlyClient.Types.Invoice | |
ToJSON InvoiceState Source # | |
Defined in RecurlyClient.Types.Invoice Methods toJSON :: InvoiceState -> Value # toEncoding :: InvoiceState -> Encoding # toJSONList :: [InvoiceState] -> Value # toEncodingList :: [InvoiceState] -> Encoding # | |
Show InvoiceState Source # | |
Defined in RecurlyClient.Types.Invoice Methods showsPrec :: Int -> InvoiceState -> ShowS # show :: InvoiceState -> String # showList :: [InvoiceState] -> ShowS # | |
Eq InvoiceState Source # | |
Defined in RecurlyClient.Types.Invoice |
data InvoiceType Source #
Defines the enum schema located at components.schemas.Invoice.properties.type
in the specification.
Invoices are either charge, credit, or legacy invoices.
Constructors
InvoiceTypeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
InvoiceTypeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
InvoiceTypeEnumCharge | Represents the JSON value |
InvoiceTypeEnumCredit | Represents the JSON value |
InvoiceTypeEnumLegacy | Represents the JSON value |
Instances
FromJSON InvoiceType Source # | |
Defined in RecurlyClient.Types.Invoice | |
ToJSON InvoiceType Source # | |
Defined in RecurlyClient.Types.Invoice Methods toJSON :: InvoiceType -> Value # toEncoding :: InvoiceType -> Encoding # toJSONList :: [InvoiceType] -> Value # toEncodingList :: [InvoiceType] -> Encoding # | |
Show InvoiceType Source # | |
Defined in RecurlyClient.Types.Invoice Methods showsPrec :: Int -> InvoiceType -> ShowS # show :: InvoiceType -> String # showList :: [InvoiceType] -> ShowS # | |
Eq InvoiceType Source # | |
Defined in RecurlyClient.Types.Invoice |