Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.PurchaseCreate
Description
Contains the types generated from the schema PurchaseCreate
Synopsis
- data PurchaseCreate = PurchaseCreate {
- purchaseCreateAccount :: AccountPurchase
- purchaseCreateBilling_info_id :: Maybe Text
- purchaseCreateBusiness_entity_code :: Maybe Text
- purchaseCreateBusiness_entity_id :: Maybe Text
- purchaseCreateCollection_method :: Maybe PurchaseCreateCollection_method
- purchaseCreateCoupon_codes :: Maybe [Text]
- purchaseCreateCredit_customer_notes :: Maybe Text
- purchaseCreateCurrency :: Text
- purchaseCreateCustomer_notes :: Maybe Text
- purchaseCreateGateway_code :: Maybe Text
- purchaseCreateGift_card_redemption_code :: Maybe Text
- purchaseCreateLine_items :: Maybe [LineItemCreate]
- purchaseCreateNet_terms :: Maybe Int
- purchaseCreateNet_terms_type :: Maybe PurchaseCreateNet_terms_type
- purchaseCreatePo_number :: Maybe Text
- purchaseCreateShipping :: Maybe PurchaseCreateShipping
- purchaseCreateSubscriptions :: Maybe [SubscriptionPurchase]
- purchaseCreateTerms_and_conditions :: Maybe Text
- purchaseCreateTransaction_type :: Maybe PurchaseCreateTransaction_type
- purchaseCreateVat_reverse_charge_notes :: Maybe Text
- mkPurchaseCreate :: AccountPurchase -> Text -> PurchaseCreate
- data PurchaseCreateCollection_method
- data PurchaseCreateNet_terms_type
- data PurchaseCreateShipping = PurchaseCreateShipping {}
- mkPurchaseCreateShipping :: PurchaseCreateShipping
- data PurchaseCreateTransaction_type
Documentation
data PurchaseCreate Source #
Defines the object schema located at components.schemas.PurchaseCreate
in the specification.
A purchase is only a request data type and is not persistent in Recurly, an InvoiceCollection will be the returned type.
Constructors
PurchaseCreate | |
Fields
|
Instances
FromJSON PurchaseCreate Source # | |
Defined in RecurlyClient.Types.PurchaseCreate Methods parseJSON :: Value -> Parser PurchaseCreate # parseJSONList :: Value -> Parser [PurchaseCreate] # | |
ToJSON PurchaseCreate Source # | |
Defined in RecurlyClient.Types.PurchaseCreate Methods toJSON :: PurchaseCreate -> Value # toEncoding :: PurchaseCreate -> Encoding # toJSONList :: [PurchaseCreate] -> Value # toEncodingList :: [PurchaseCreate] -> Encoding # | |
Show PurchaseCreate Source # | |
Defined in RecurlyClient.Types.PurchaseCreate Methods showsPrec :: Int -> PurchaseCreate -> ShowS # show :: PurchaseCreate -> String # showList :: [PurchaseCreate] -> ShowS # | |
Eq PurchaseCreate Source # | |
Defined in RecurlyClient.Types.PurchaseCreate Methods (==) :: PurchaseCreate -> PurchaseCreate -> Bool # (/=) :: PurchaseCreate -> PurchaseCreate -> Bool # |
Create a new PurchaseCreate
with all required fields.
data PurchaseCreateCollection_method Source #
Defines the enum schema located at components.schemas.PurchaseCreate.properties.collection_method
in the specification.
Must be set to manual in order to preview a purchase for an Account that does not have payment information associated with the Billing Info.
Constructors
PurchaseCreateCollection_methodOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PurchaseCreateCollection_methodTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PurchaseCreateCollection_methodEnumAutomatic | Represents the JSON value |
PurchaseCreateCollection_methodEnumManual | Represents the JSON value |
Instances
data PurchaseCreateNet_terms_type Source #
Defines the enum schema located at components.schemas.PurchaseCreate.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
PurchaseCreateNet_terms_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PurchaseCreateNet_terms_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PurchaseCreateNet_terms_typeEnumNet | Represents the JSON value |
PurchaseCreateNet_terms_typeEnumEom | Represents the JSON value |
Instances
data PurchaseCreateShipping Source #
Defines the object schema located at components.schemas.PurchaseCreate.properties.shipping
in the specification.
Constructors
PurchaseCreateShipping | |
Fields
|
Instances
FromJSON PurchaseCreateShipping Source # | |
Defined in RecurlyClient.Types.PurchaseCreate Methods parseJSON :: Value -> Parser PurchaseCreateShipping # parseJSONList :: Value -> Parser [PurchaseCreateShipping] # | |
ToJSON PurchaseCreateShipping Source # | |
Defined in RecurlyClient.Types.PurchaseCreate Methods toJSON :: PurchaseCreateShipping -> Value # toEncoding :: PurchaseCreateShipping -> Encoding # toJSONList :: [PurchaseCreateShipping] -> Value # | |
Show PurchaseCreateShipping Source # | |
Defined in RecurlyClient.Types.PurchaseCreate Methods showsPrec :: Int -> PurchaseCreateShipping -> ShowS # show :: PurchaseCreateShipping -> String # showList :: [PurchaseCreateShipping] -> ShowS # | |
Eq PurchaseCreateShipping Source # | |
Defined in RecurlyClient.Types.PurchaseCreate Methods (==) :: PurchaseCreateShipping -> PurchaseCreateShipping -> Bool # (/=) :: PurchaseCreateShipping -> PurchaseCreateShipping -> Bool # |
mkPurchaseCreateShipping :: PurchaseCreateShipping Source #
Create a new PurchaseCreateShipping
with all required fields.
data PurchaseCreateTransaction_type Source #
Defines the enum schema located at components.schemas.PurchaseCreate.properties.transaction_type
in the specification.
An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.
Constructors
PurchaseCreateTransaction_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PurchaseCreateTransaction_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PurchaseCreateTransaction_typeEnumMoto | Represents the JSON value |