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

RecurlyClient.Operations.List_invoice_coupon_redemptions

Description

Contains the different functions to run the operation list_invoice_coupon_redemptions

Synopsis

Documentation

list_invoice_coupon_redemptions Source #

Arguments

:: forall m. MonadHTTP m 
=> List_invoice_coupon_redemptionsParameters

Contains all available parameters of this operation (query and path parameters)

-> ClientT m (Response List_invoice_coupon_redemptionsResponse)

Monadic computation which returns the result of the operation

GET /invoices/{invoice_id}/coupon_redemptions

See the Pagination Guide to learn how to use pagination in the API and Client Libraries.

data List_invoice_coupon_redemptionsParameters Source #

Defines the object schema located at paths./invoices/{invoice_id}/coupon_redemptions.GET.parameters in the specification.

Constructors

List_invoice_coupon_redemptionsParameters 

Fields

  • list_invoice_coupon_redemptionsParametersPathInvoice_id :: Text

    pathInvoice_id: Represents the parameter named 'invoice_id'

    Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.

  • list_invoice_coupon_redemptionsParametersQueryBegin_time :: Maybe JsonDateTime

    queryBegin_time: Represents the parameter named 'begin_time'

    Inclusively filter by begin_time when `sort=created_at` or `sort=updated_at`. **Note:** this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.

  • list_invoice_coupon_redemptionsParametersQueryEnd_time :: Maybe JsonDateTime

    queryEnd_time: Represents the parameter named 'end_time'

    Inclusively filter by end_time when `sort=created_at` or `sort=updated_at`. **Note:** this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.

  • list_invoice_coupon_redemptionsParametersQueryIds :: Maybe [Text]

    queryIds: Represents the parameter named 'ids'

    Filter results by their IDs. Up to 200 IDs can be passed at once using commas as separators, e.g. `ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6`.

    • *Important notes:**
    • The `ids` parameter cannot be used with any other ordering or filtering parameters (`limit`, `order`, `sort`, `begin_time`, `end_time`, etc)
    • Invalid or unknown IDs will be ignored, so you should check that the results correspond to your request.
    • Records are returned in an arbitrary order. Since results are all returned at once you can sort the records yourself.
  • list_invoice_coupon_redemptionsParametersQuerySort :: Maybe List_invoice_coupon_redemptionsParametersQuerySort

    querySort: Represents the parameter named 'sort'

    Sort field. You *really* only want to sort by `updated_at` in ascending order. In descending order updated records will move behind the cursor and could prevent some records from being returned.

data List_invoice_coupon_redemptionsParametersQuerySort Source #

Defines the enum schema located at paths./invoices/{invoice_id}/coupon_redemptions.GET.parameters.properties.querySort in the specification.

Represents the parameter named 'sort'

Sort field. You *really* only want to sort by `updated_at` in ascending order. In descending order updated records will move behind the cursor and could prevent some records from being returned.

Constructors

List_invoice_coupon_redemptionsParametersQuerySortOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

List_invoice_coupon_redemptionsParametersQuerySortTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

List_invoice_coupon_redemptionsParametersQuerySortEnumCreated_at

Represents the JSON value "created_at"

List_invoice_coupon_redemptionsParametersQuerySortEnumUpdated_at

Represents the JSON value "updated_at"

Instances

Instances details
FromJSON List_invoice_coupon_redemptionsParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_invoice_coupon_redemptions

ToJSON List_invoice_coupon_redemptionsParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_invoice_coupon_redemptions

Show List_invoice_coupon_redemptionsParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_invoice_coupon_redemptions

Eq List_invoice_coupon_redemptionsParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_invoice_coupon_redemptions

list_invoice_coupon_redemptionsWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_invoice_coupon_redemptionsParameters

Contains all available parameters of this operation (query and path parameters)

-> m (Response List_invoice_coupon_redemptionsResponse)

Monadic computation which returns the result of the operation

GET /invoices/{invoice_id}/coupon_redemptions

The same as list_invoice_coupon_redemptions but accepts an explicit configuration.

list_invoice_coupon_redemptionsRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> List_invoice_coupon_redemptionsParameters

Contains all available parameters of this operation (query and path parameters)

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

GET /invoices/{invoice_id}/coupon_redemptions

The same as list_invoice_coupon_redemptions but returns the raw ByteString.

list_invoice_coupon_redemptionsWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_invoice_coupon_redemptionsParameters

Contains all available parameters of this operation (query and path parameters)

-> m (Response ByteString)

Monadic computation which returns the result of the operation

GET /invoices/{invoice_id}/coupon_redemptions

The same as list_invoice_coupon_redemptions but accepts an explicit configuration and returns the raw ByteString.