stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetCreditNotesPreview

Description

Contains the different functions to run the operation getCreditNotesPreview

Synopsis

Documentation

getCreditNotesPreview Source #

Arguments

:: forall m. MonadHTTP m 
=> GetCreditNotesPreviewParameters

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

-> ClientT m (Response GetCreditNotesPreviewResponse)

Monadic computation which returns the result of the operation

GET /v1/credit_notes/preview

<p>Get a preview of a credit note without creating it.</p>

data GetCreditNotesPreviewParameters Source #

Defines the object schema located at paths./v1/credit_notes/preview.GET.parameters in the specification.

Constructors

GetCreditNotesPreviewParameters 

Fields

data GetCreditNotesPreviewParametersQueryLines' Source #

Defines the object schema located at paths./v1/credit_notes/preview.GET.parameters.properties.queryLines.items in the specification.

data GetCreditNotesPreviewParametersQueryLines'TaxRates'Variants Source #

Defines the oneOf schema located at paths./v1/credit_notes/preview.GET.parameters.properties.queryLines.items.properties.tax_rates.anyOf in the specification.

Instances

Instances details
Eq GetCreditNotesPreviewParametersQueryLines'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetCreditNotesPreview

Show GetCreditNotesPreviewParametersQueryLines'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetCreditNotesPreview

ToJSON GetCreditNotesPreviewParametersQueryLines'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetCreditNotesPreview

FromJSON GetCreditNotesPreviewParametersQueryLines'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetCreditNotesPreview

data GetCreditNotesPreviewParametersQueryLines'Type' Source #

Defines the enum schema located at paths./v1/credit_notes/preview.GET.parameters.properties.queryLines.items.properties.type in the specification.

Constructors

GetCreditNotesPreviewParametersQueryLines'Type'Other Value

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

GetCreditNotesPreviewParametersQueryLines'Type'Typed Text

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

GetCreditNotesPreviewParametersQueryLines'Type'EnumCustomLineItem

Represents the JSON value "custom_line_item"

GetCreditNotesPreviewParametersQueryLines'Type'EnumInvoiceLineItem

Represents the JSON value "invoice_line_item"

Instances

Instances details
Eq GetCreditNotesPreviewParametersQueryLines'Type' Source # 
Instance details

Defined in StripeAPI.Operations.GetCreditNotesPreview

Show GetCreditNotesPreviewParametersQueryLines'Type' Source # 
Instance details

Defined in StripeAPI.Operations.GetCreditNotesPreview

ToJSON GetCreditNotesPreviewParametersQueryLines'Type' Source # 
Instance details

Defined in StripeAPI.Operations.GetCreditNotesPreview

FromJSON GetCreditNotesPreviewParametersQueryLines'Type' Source # 
Instance details

Defined in StripeAPI.Operations.GetCreditNotesPreview

data GetCreditNotesPreviewParametersQueryReason' Source #

Defines the enum schema located at paths./v1/credit_notes/preview.GET.parameters.properties.queryReason in the specification.

Represents the parameter named 'reason'

Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`

Constructors

GetCreditNotesPreviewParametersQueryReason'Other Value

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

GetCreditNotesPreviewParametersQueryReason'Typed Text

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

GetCreditNotesPreviewParametersQueryReason'EnumDuplicate

Represents the JSON value "duplicate"

GetCreditNotesPreviewParametersQueryReason'EnumFraudulent

Represents the JSON value "fraudulent"

GetCreditNotesPreviewParametersQueryReason'EnumOrderChange

Represents the JSON value "order_change"

GetCreditNotesPreviewParametersQueryReason'EnumProductUnsatisfactory

Represents the JSON value "product_unsatisfactory"

data GetCreditNotesPreviewResponse Source #

Represents a response of the operation getCreditNotesPreview.

The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), GetCreditNotesPreviewResponseError is used.

Constructors

GetCreditNotesPreviewResponseError String

Means either no matching case available or a parse error

GetCreditNotesPreviewResponse200 CreditNote

Successful response.

GetCreditNotesPreviewResponseDefault Error

Error response.