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

RecurlyClient.Types.UsageCreate

Description

Contains the types generated from the schema UsageCreate

Synopsis

Documentation

data UsageCreate Source #

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

Constructors

UsageCreate 

Fields

  • usageCreateAmount :: Maybe Float

    amount: The amount of usage. Can be positive, negative, or 0. If the Decimal Quantity feature is enabled, this value will be rounded to nine decimal places. Otherwise, all digits after the decimal will be stripped. If the usage-based add-on is billed with a percentage, your usage should be a monetary amount formatted in cents (e.g., $5.00 is "500").

  • usageCreateMerchant_tag :: Maybe Text

    merchant_tag: Custom field for recording the id in your own system associated with the usage, so you can provide auditable usage displays to your customers using a GET on this endpoint.

  • usageCreateRecording_timestamp :: Maybe JsonDateTime

    recording_timestamp: When the usage was recorded in your system.

  • usageCreateUsage_timestamp :: Maybe JsonDateTime

    usage_timestamp: When the usage actually happened. This will define the line item dates this usage is billed under and is important for revenue recognition.

mkUsageCreate :: UsageCreate Source #

Create a new UsageCreate with all required fields.