Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.LineItem
Description
Contains the types generated from the schema LineItem
Synopsis
- data LineItem = LineItem {
- lineItemAccount :: Maybe AccountMini
- lineItemAccounting_code :: Maybe Text
- lineItemAdd_on_code :: Maybe Text
- lineItemAdd_on_id :: Maybe Text
- lineItemAmount :: Maybe Float
- lineItemAvalara_service_type :: Maybe Int
- lineItemAvalara_transaction_type :: Maybe Int
- lineItemBill_for_account_id :: Maybe Text
- lineItemCreated_at :: Maybe JsonDateTime
- lineItemCredit_applied :: Maybe Float
- lineItemCredit_reason_code :: Maybe LineItemCredit_reason_code
- lineItemCurrency :: Maybe Text
- lineItemCustom_fields :: Maybe CustomFields
- lineItemDescription :: Maybe Text
- lineItemDestination_tax_address_source :: Maybe LineItemDestination_tax_address_source
- lineItemDiscount :: Maybe Float
- lineItemEnd_date :: Maybe JsonDateTime
- lineItemExternal_sku :: Maybe Text
- lineItemId :: Maybe Text
- lineItemInvoice_id :: Maybe Text
- lineItemInvoice_number :: Maybe Text
- lineItemItem_code :: Maybe Text
- lineItemItem_id :: Maybe Text
- lineItemLegacy_category :: Maybe LineItemLegacy_category
- lineItemLiability_gl_account_code :: Maybe Text
- lineItemObject :: Maybe Text
- lineItemOrigin :: Maybe LineItemOrigin
- lineItemOrigin_tax_address_source :: Maybe LineItemOrigin_tax_address_source
- lineItemOriginal_line_item_invoice_id :: Maybe Text
- lineItemPerformance_obligation_id :: Maybe Text
- lineItemPlan_code :: Maybe Text
- lineItemPlan_id :: Maybe Text
- lineItemPrevious_line_item_id :: Maybe Text
- lineItemProduct_code :: Maybe Text
- lineItemProration_rate :: Maybe Float
- lineItemQuantity :: Maybe Int
- lineItemQuantity_decimal :: Maybe Text
- lineItemRefund :: Maybe Bool
- lineItemRefunded_quantity :: Maybe Int
- lineItemRefunded_quantity_decimal :: Maybe Text
- lineItemRevenue_gl_account_code :: Maybe Text
- lineItemRevenue_schedule_type :: Maybe LineItemRevenue_schedule_type
- lineItemShipping_address :: Maybe ShippingAddress
- lineItemStart_date :: Maybe JsonDateTime
- lineItemState :: Maybe LineItemState
- lineItemSubscription_id :: Maybe Text
- lineItemSubtotal :: Maybe Float
- lineItemTax :: Maybe Float
- lineItemTax_code :: Maybe Text
- lineItemTax_exempt :: Maybe Bool
- lineItemTax_inclusive :: Maybe Bool
- lineItemTax_info :: Maybe TaxInfo
- lineItemTaxable :: Maybe Bool
- lineItemType :: Maybe LineItemType
- lineItemUnit_amount :: Maybe Float
- lineItemUnit_amount_decimal :: Maybe Text
- lineItemUpdated_at :: Maybe JsonDateTime
- lineItemUuid :: Maybe Text
- mkLineItem :: LineItem
- data LineItemCredit_reason_code
- = LineItemCredit_reason_codeOther Value
- | LineItemCredit_reason_codeTyped Text
- | LineItemCredit_reason_codeEnumGeneral
- | LineItemCredit_reason_codeEnumGift_card
- | LineItemCredit_reason_codeEnumPromotional
- | LineItemCredit_reason_codeEnumRefund
- | LineItemCredit_reason_codeEnumService
- | LineItemCredit_reason_codeEnumWrite_off
- data LineItemDestination_tax_address_source
- data LineItemLegacy_category
- data LineItemOrigin
- = LineItemOriginOther Value
- | LineItemOriginTyped Text
- | LineItemOriginEnumAdd_on
- | LineItemOriginEnumAdd_on_trial
- | LineItemOriginEnumCarryforward
- | LineItemOriginEnumCoupon
- | LineItemOriginEnumCredit
- | LineItemOriginEnumDebit
- | LineItemOriginEnumOne_time
- | LineItemOriginEnumPlan
- | LineItemOriginEnumPlan_trial
- | LineItemOriginEnumSetup_fee
- | LineItemOriginEnumPrepayment
- data LineItemOrigin_tax_address_source
- data LineItemRevenue_schedule_type
- = LineItemRevenue_schedule_typeOther Value
- | LineItemRevenue_schedule_typeTyped Text
- | LineItemRevenue_schedule_typeEnumAt_invoice
- | LineItemRevenue_schedule_typeEnumAt_range_end
- | LineItemRevenue_schedule_typeEnumAt_range_start
- | LineItemRevenue_schedule_typeEnumEvenly
- | LineItemRevenue_schedule_typeEnumNever
- data LineItemState
- data LineItemType
Documentation
Defines the object schema located at components.schemas.LineItem
in the specification.
Constructors
LineItem | |
Fields
|
mkLineItem :: LineItem Source #
Create a new LineItem
with all required fields.
data LineItemCredit_reason_code Source #
Defines the enum schema located at components.schemas.LineItem.properties.credit_reason_code
in the specification.
The reason the credit was given when line item is `type=credit`.
Constructors
LineItemCredit_reason_codeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemCredit_reason_codeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemCredit_reason_codeEnumGeneral | Represents the JSON value |
LineItemCredit_reason_codeEnumGift_card | Represents the JSON value |
LineItemCredit_reason_codeEnumPromotional | Represents the JSON value |
LineItemCredit_reason_codeEnumRefund | Represents the JSON value |
LineItemCredit_reason_codeEnumService | Represents the JSON value |
LineItemCredit_reason_codeEnumWrite_off | Represents the JSON value |
Instances
FromJSON LineItemCredit_reason_code Source # | |
Defined in RecurlyClient.Types.LineItem Methods parseJSON :: Value -> Parser LineItemCredit_reason_code # parseJSONList :: Value -> Parser [LineItemCredit_reason_code] # | |
ToJSON LineItemCredit_reason_code Source # | |
Defined in RecurlyClient.Types.LineItem Methods toJSON :: LineItemCredit_reason_code -> Value # toEncoding :: LineItemCredit_reason_code -> Encoding # toJSONList :: [LineItemCredit_reason_code] -> Value # toEncodingList :: [LineItemCredit_reason_code] -> Encoding # | |
Show LineItemCredit_reason_code Source # | |
Defined in RecurlyClient.Types.LineItem Methods showsPrec :: Int -> LineItemCredit_reason_code -> ShowS # show :: LineItemCredit_reason_code -> String # showList :: [LineItemCredit_reason_code] -> ShowS # | |
Eq LineItemCredit_reason_code Source # | |
Defined in RecurlyClient.Types.LineItem Methods (==) :: LineItemCredit_reason_code -> LineItemCredit_reason_code -> Bool # (/=) :: LineItemCredit_reason_code -> LineItemCredit_reason_code -> Bool # |
data LineItemDestination_tax_address_source Source #
Defines the enum schema located at components.schemas.LineItem.properties.destination_tax_address_source
in the specification.
The source of the address that will be used as the destinaion in determining taxes. Available only when the site is on an Elite plan. A value of "destination" refers to the "Customer tax address". A value of "origin" refers to the "Business entity tax address".
Constructors
LineItemDestination_tax_address_sourceOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemDestination_tax_address_sourceTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemDestination_tax_address_sourceEnumDestination | Represents the JSON value |
LineItemDestination_tax_address_sourceEnumOrigin | Represents the JSON value |
Instances
data LineItemLegacy_category Source #
Defines the enum schema located at components.schemas.LineItem.properties.legacy_category
in the specification.
Category to describe the role of a line item on a legacy invoice: - "charges" refers to charges being billed for on this invoice. - "credits" refers to refund or proration credits. This portion of the invoice can be considered a credit memo. - "applied_credits" refers to previous credits applied to this invoice. See their original_line_item_id to determine where the credit first originated. - "carryforwards" can be ignored. They exist to consume any remaining credit balance. A new credit with the same amount will be created and placed back on the account.
Constructors
LineItemLegacy_categoryOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemLegacy_categoryTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemLegacy_categoryEnumApplied_credit | Represents the JSON value |
LineItemLegacy_categoryEnumCarryforward | Represents the JSON value |
LineItemLegacy_categoryEnumCharge | Represents the JSON value |
LineItemLegacy_categoryEnumCredit | Represents the JSON value |
Instances
FromJSON LineItemLegacy_category Source # | |
Defined in RecurlyClient.Types.LineItem Methods parseJSON :: Value -> Parser LineItemLegacy_category # parseJSONList :: Value -> Parser [LineItemLegacy_category] # | |
ToJSON LineItemLegacy_category Source # | |
Defined in RecurlyClient.Types.LineItem Methods toJSON :: LineItemLegacy_category -> Value # toEncoding :: LineItemLegacy_category -> Encoding # toJSONList :: [LineItemLegacy_category] -> Value # | |
Show LineItemLegacy_category Source # | |
Defined in RecurlyClient.Types.LineItem Methods showsPrec :: Int -> LineItemLegacy_category -> ShowS # show :: LineItemLegacy_category -> String # showList :: [LineItemLegacy_category] -> ShowS # | |
Eq LineItemLegacy_category Source # | |
Defined in RecurlyClient.Types.LineItem Methods (==) :: LineItemLegacy_category -> LineItemLegacy_category -> Bool # (/=) :: LineItemLegacy_category -> LineItemLegacy_category -> Bool # |
data LineItemOrigin Source #
Defines the enum schema located at components.schemas.LineItem.properties.origin
in the specification.
A credit created from an original charge will have the value of the charge's origin.
Constructors
LineItemOriginOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemOriginTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemOriginEnumAdd_on | Represents the JSON value |
LineItemOriginEnumAdd_on_trial | Represents the JSON value |
LineItemOriginEnumCarryforward | Represents the JSON value |
LineItemOriginEnumCoupon | Represents the JSON value |
LineItemOriginEnumCredit | Represents the JSON value |
LineItemOriginEnumDebit | Represents the JSON value |
LineItemOriginEnumOne_time | Represents the JSON value |
LineItemOriginEnumPlan | Represents the JSON value |
LineItemOriginEnumPlan_trial | Represents the JSON value |
LineItemOriginEnumSetup_fee | Represents the JSON value |
LineItemOriginEnumPrepayment | Represents the JSON value |
Instances
FromJSON LineItemOrigin Source # | |
Defined in RecurlyClient.Types.LineItem Methods parseJSON :: Value -> Parser LineItemOrigin # parseJSONList :: Value -> Parser [LineItemOrigin] # | |
ToJSON LineItemOrigin Source # | |
Defined in RecurlyClient.Types.LineItem Methods toJSON :: LineItemOrigin -> Value # toEncoding :: LineItemOrigin -> Encoding # toJSONList :: [LineItemOrigin] -> Value # toEncodingList :: [LineItemOrigin] -> Encoding # | |
Show LineItemOrigin Source # | |
Defined in RecurlyClient.Types.LineItem Methods showsPrec :: Int -> LineItemOrigin -> ShowS # show :: LineItemOrigin -> String # showList :: [LineItemOrigin] -> ShowS # | |
Eq LineItemOrigin Source # | |
Defined in RecurlyClient.Types.LineItem Methods (==) :: LineItemOrigin -> LineItemOrigin -> Bool # (/=) :: LineItemOrigin -> LineItemOrigin -> Bool # |
data LineItemOrigin_tax_address_source Source #
Defines the enum schema located at components.schemas.LineItem.properties.origin_tax_address_source
in the specification.
The source of the address that will be used as the origin in determining taxes. Available only when the site is on an Elite plan. A value of "origin" refers to the "Business entity tax address". A value of "destination" refers to the "Customer tax address".
Constructors
LineItemOrigin_tax_address_sourceOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemOrigin_tax_address_sourceTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemOrigin_tax_address_sourceEnumOrigin | Represents the JSON value |
LineItemOrigin_tax_address_sourceEnumDestination | Represents the JSON value |
Instances
FromJSON LineItemOrigin_tax_address_source Source # | |
Defined in RecurlyClient.Types.LineItem Methods parseJSON :: Value -> Parser LineItemOrigin_tax_address_source # parseJSONList :: Value -> Parser [LineItemOrigin_tax_address_source] # | |
ToJSON LineItemOrigin_tax_address_source Source # | |
Defined in RecurlyClient.Types.LineItem | |
Show LineItemOrigin_tax_address_source Source # | |
Defined in RecurlyClient.Types.LineItem Methods showsPrec :: Int -> LineItemOrigin_tax_address_source -> ShowS # | |
Eq LineItemOrigin_tax_address_source Source # | |
Defined in RecurlyClient.Types.LineItem |
data LineItemRevenue_schedule_type Source #
Defines the enum schema located at components.schemas.LineItem.properties.revenue_schedule_type
in the specification.
Constructors
LineItemRevenue_schedule_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemRevenue_schedule_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemRevenue_schedule_typeEnumAt_invoice | Represents the JSON value |
LineItemRevenue_schedule_typeEnumAt_range_end | Represents the JSON value |
LineItemRevenue_schedule_typeEnumAt_range_start | Represents the JSON value |
LineItemRevenue_schedule_typeEnumEvenly | Represents the JSON value |
LineItemRevenue_schedule_typeEnumNever | Represents the JSON value |
Instances
FromJSON LineItemRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.LineItem Methods parseJSON :: Value -> Parser LineItemRevenue_schedule_type # parseJSONList :: Value -> Parser [LineItemRevenue_schedule_type] # | |
ToJSON LineItemRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.LineItem Methods toJSON :: LineItemRevenue_schedule_type -> Value # toEncoding :: LineItemRevenue_schedule_type -> Encoding # toJSONList :: [LineItemRevenue_schedule_type] -> Value # toEncodingList :: [LineItemRevenue_schedule_type] -> Encoding # | |
Show LineItemRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.LineItem Methods showsPrec :: Int -> LineItemRevenue_schedule_type -> ShowS # show :: LineItemRevenue_schedule_type -> String # showList :: [LineItemRevenue_schedule_type] -> ShowS # | |
Eq LineItemRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.LineItem |
data LineItemState Source #
Defines the enum schema located at components.schemas.LineItem.properties.state
in the specification.
Pending line items are charges or credits on an account that have not been applied to an invoice yet. Invoiced line items will always have an `invoice_id` value.
Constructors
LineItemStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemStateEnumInvoiced | Represents the JSON value |
LineItemStateEnumPending | Represents the JSON value |
Instances
FromJSON LineItemState Source # | |
Defined in RecurlyClient.Types.LineItem Methods parseJSON :: Value -> Parser LineItemState # parseJSONList :: Value -> Parser [LineItemState] # | |
ToJSON LineItemState Source # | |
Defined in RecurlyClient.Types.LineItem Methods toJSON :: LineItemState -> Value # toEncoding :: LineItemState -> Encoding # toJSONList :: [LineItemState] -> Value # toEncodingList :: [LineItemState] -> Encoding # | |
Show LineItemState Source # | |
Defined in RecurlyClient.Types.LineItem Methods showsPrec :: Int -> LineItemState -> ShowS # show :: LineItemState -> String # showList :: [LineItemState] -> ShowS # | |
Eq LineItemState Source # | |
Defined in RecurlyClient.Types.LineItem Methods (==) :: LineItemState -> LineItemState -> Bool # (/=) :: LineItemState -> LineItemState -> Bool # |
data LineItemType Source #
Defines the enum schema located at components.schemas.LineItem.properties.type
in the specification.
Charges are positive line items that debit the account. Credits are negative line items that credit the account.
Constructors
LineItemTypeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemTypeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemTypeEnumCharge | Represents the JSON value |
LineItemTypeEnumCredit | Represents the JSON value |
Instances
FromJSON LineItemType Source # | |
Defined in RecurlyClient.Types.LineItem | |
ToJSON LineItemType Source # | |
Defined in RecurlyClient.Types.LineItem Methods toJSON :: LineItemType -> Value # toEncoding :: LineItemType -> Encoding # toJSONList :: [LineItemType] -> Value # toEncodingList :: [LineItemType] -> Encoding # | |
Show LineItemType Source # | |
Defined in RecurlyClient.Types.LineItem Methods showsPrec :: Int -> LineItemType -> ShowS # show :: LineItemType -> String # showList :: [LineItemType] -> ShowS # | |
Eq LineItemType Source # | |
Defined in RecurlyClient.Types.LineItem |