Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.LineItemCreate
Description
Contains the types generated from the schema LineItemCreate
Synopsis
- data LineItemCreate = LineItemCreate {
- lineItemCreateAccounting_code :: Maybe Text
- lineItemCreateAvalara_service_type :: Maybe Int
- lineItemCreateAvalara_transaction_type :: Maybe Int
- lineItemCreateCredit_reason_code :: Maybe LineItemCreateCredit_reason_code
- lineItemCreateCurrency :: Text
- lineItemCreateCustom_fields :: Maybe CustomFields
- lineItemCreateDescription :: Maybe Text
- lineItemCreateDestination_tax_address_source :: Maybe LineItemCreateDestination_tax_address_source
- lineItemCreateEnd_date :: Maybe JsonDateTime
- lineItemCreateItem_code :: Maybe Text
- lineItemCreateItem_id :: Maybe Text
- lineItemCreateLiability_gl_account_id :: Maybe Text
- lineItemCreateOrigin :: Maybe LineItemCreateOrigin
- lineItemCreateOrigin_tax_address_source :: Maybe LineItemCreateOrigin_tax_address_source
- lineItemCreatePerformance_obligation_id :: Maybe Text
- lineItemCreateProduct_code :: Maybe Text
- lineItemCreateQuantity :: Maybe Int
- lineItemCreateRevenue_gl_account_id :: Maybe Text
- lineItemCreateRevenue_schedule_type :: Maybe LineItemCreateRevenue_schedule_type
- lineItemCreateStart_date :: Maybe JsonDateTime
- lineItemCreateTax_code :: Maybe Text
- lineItemCreateTax_exempt :: Maybe Bool
- lineItemCreateTax_inclusive :: Maybe Bool
- lineItemCreateType :: LineItemCreateType
- lineItemCreateUnit_amount :: Float
- mkLineItemCreate :: Text -> LineItemCreateType -> Float -> LineItemCreate
- data LineItemCreateCredit_reason_code
- data LineItemCreateDestination_tax_address_source
- data LineItemCreateOrigin
- data LineItemCreateOrigin_tax_address_source
- data LineItemCreateRevenue_schedule_type
- = LineItemCreateRevenue_schedule_typeOther Value
- | LineItemCreateRevenue_schedule_typeTyped Text
- | LineItemCreateRevenue_schedule_typeEnumAt_invoice
- | LineItemCreateRevenue_schedule_typeEnumAt_range_end
- | LineItemCreateRevenue_schedule_typeEnumAt_range_start
- | LineItemCreateRevenue_schedule_typeEnumEvenly
- | LineItemCreateRevenue_schedule_typeEnumNever
- data LineItemCreateType
Documentation
data LineItemCreate Source #
Defines the object schema located at components.schemas.LineItemCreate
in the specification.
Constructors
LineItemCreate | |
Fields
|
Instances
FromJSON LineItemCreate Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods parseJSON :: Value -> Parser LineItemCreate # parseJSONList :: Value -> Parser [LineItemCreate] # | |
ToJSON LineItemCreate Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods toJSON :: LineItemCreate -> Value # toEncoding :: LineItemCreate -> Encoding # toJSONList :: [LineItemCreate] -> Value # toEncodingList :: [LineItemCreate] -> Encoding # | |
Show LineItemCreate Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods showsPrec :: Int -> LineItemCreate -> ShowS # show :: LineItemCreate -> String # showList :: [LineItemCreate] -> ShowS # | |
Eq LineItemCreate Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods (==) :: LineItemCreate -> LineItemCreate -> Bool # (/=) :: LineItemCreate -> LineItemCreate -> Bool # |
Arguments
:: Text | |
-> LineItemCreateType | |
-> Float | |
-> LineItemCreate |
Create a new LineItemCreate
with all required fields.
data LineItemCreateCredit_reason_code Source #
Defines the enum schema located at components.schemas.LineItemCreate.properties.credit_reason_code
in the specification.
The reason the credit was given when line item is `type=credit`. When the Credit Invoices feature is enabled, the value can be set and will default to `general`. When the Credit Invoices feature is not enabled, the value will always be `null`.
Constructors
LineItemCreateCredit_reason_codeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemCreateCredit_reason_codeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemCreateCredit_reason_codeEnumGeneral | Represents the JSON value |
LineItemCreateCredit_reason_codeEnumPromotional | Represents the JSON value |
LineItemCreateCredit_reason_codeEnumService | Represents the JSON value |
Instances
data LineItemCreateDestination_tax_address_source Source #
Defines the enum schema located at components.schemas.LineItemCreate.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
LineItemCreateDestination_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. |
LineItemCreateDestination_tax_address_sourceTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemCreateDestination_tax_address_sourceEnumDestination | Represents the JSON value |
LineItemCreateDestination_tax_address_sourceEnumOrigin | Represents the JSON value |
data LineItemCreateOrigin Source #
Defines the enum schema located at components.schemas.LineItemCreate.properties.origin
in the specification.
Origin `external_gift_card` is allowed if the Gift Cards feature is enabled on your site and `type` is `credit`. Set this value in order to track gift card credits from external gift cards (like InComm). It also skips billing information requirements. Origin `prepayment` is only allowed if `type` is `charge` and `tax_exempt` is left blank or set to true. This origin creates a charge and opposite credit on the account to be used for future invoices.
Constructors
LineItemCreateOriginOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemCreateOriginTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemCreateOriginEnumExternal_gift_card | Represents the JSON value |
LineItemCreateOriginEnumPrepayment | Represents the JSON value |
Instances
FromJSON LineItemCreateOrigin Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods parseJSON :: Value -> Parser LineItemCreateOrigin # parseJSONList :: Value -> Parser [LineItemCreateOrigin] # | |
ToJSON LineItemCreateOrigin Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods toJSON :: LineItemCreateOrigin -> Value # toEncoding :: LineItemCreateOrigin -> Encoding # toJSONList :: [LineItemCreateOrigin] -> Value # toEncodingList :: [LineItemCreateOrigin] -> Encoding # | |
Show LineItemCreateOrigin Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods showsPrec :: Int -> LineItemCreateOrigin -> ShowS # show :: LineItemCreateOrigin -> String # showList :: [LineItemCreateOrigin] -> ShowS # | |
Eq LineItemCreateOrigin Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods (==) :: LineItemCreateOrigin -> LineItemCreateOrigin -> Bool # (/=) :: LineItemCreateOrigin -> LineItemCreateOrigin -> Bool # |
data LineItemCreateOrigin_tax_address_source Source #
Defines the enum schema located at components.schemas.LineItemCreate.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
LineItemCreateOrigin_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. |
LineItemCreateOrigin_tax_address_sourceTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemCreateOrigin_tax_address_sourceEnumOrigin | Represents the JSON value |
LineItemCreateOrigin_tax_address_sourceEnumDestination | Represents the JSON value |
Instances
data LineItemCreateRevenue_schedule_type Source #
Defines the enum schema located at components.schemas.LineItemCreate.properties.revenue_schedule_type
in the specification.
Constructors
LineItemCreateRevenue_schedule_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemCreateRevenue_schedule_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemCreateRevenue_schedule_typeEnumAt_invoice | Represents the JSON value |
LineItemCreateRevenue_schedule_typeEnumAt_range_end | Represents the JSON value |
LineItemCreateRevenue_schedule_typeEnumAt_range_start | Represents the JSON value |
LineItemCreateRevenue_schedule_typeEnumEvenly | Represents the JSON value |
LineItemCreateRevenue_schedule_typeEnumNever | Represents the JSON value |
Instances
data LineItemCreateType Source #
Defines the enum schema located at components.schemas.LineItemCreate.properties.type
in the specification.
Line item type. If `item_code`/`item_id` is present then `type` should not be present. If `item_code`/`item_id` is not present then `type` is required.
Constructors
LineItemCreateTypeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemCreateTypeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemCreateTypeEnumCharge | Represents the JSON value |
LineItemCreateTypeEnumCredit | Represents the JSON value |
Instances
FromJSON LineItemCreateType Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods parseJSON :: Value -> Parser LineItemCreateType # parseJSONList :: Value -> Parser [LineItemCreateType] # | |
ToJSON LineItemCreateType Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods toJSON :: LineItemCreateType -> Value # toEncoding :: LineItemCreateType -> Encoding # toJSONList :: [LineItemCreateType] -> Value # toEncodingList :: [LineItemCreateType] -> Encoding # | |
Show LineItemCreateType Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods showsPrec :: Int -> LineItemCreateType -> ShowS # show :: LineItemCreateType -> String # showList :: [LineItemCreateType] -> ShowS # | |
Eq LineItemCreateType Source # | |
Defined in RecurlyClient.Types.LineItemCreate Methods (==) :: LineItemCreateType -> LineItemCreateType -> Bool # (/=) :: LineItemCreateType -> LineItemCreateType -> Bool # |