stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Types.Invoice

Description

Contains the types generated from the schema Invoice

Synopsis

Documentation

data Invoice Source #

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

Invoices are statements of amounts owed by a customer, and are either generated one-off, or generated periodically from a subscription.

They contain invoice items, and proration adjustments that may be caused by subscription upgrades/downgrades (if necessary).

If your invoice is configured to be billed through automatic charges, Stripe automatically finalizes your invoice and attempts payment. Note that finalizing the invoice, when automatic, does not happen immediately as the invoice is created. Stripe waits until one hour after the last webhook was successfully sent (or the last webhook timed out after failing). If you (and the platforms you may have connected to) have no webhooks configured, Stripe waits one hour after creation to finalize the invoice.

If your invoice is configured to be billed by sending an email, then based on your email settings, Stripe will email the invoice to your customer and await payment. These emails can contain a link to a hosted page to pay the invoice.

Stripe applies any customer credit on the account before determining the amount due for the invoice (i.e., the amount that will be actually charged). If the amount due for the invoice is less than Stripe's minimum allowed charge per currency, the invoice is automatically marked paid, and we add the amount due to the customer's credit balance which is applied to the next invoice.

More details on the customer's credit balance are here.

Related guide: Send Invoices to Customers.

Constructors

Invoice 

Fields

  • invoiceAccountCountry :: Maybe Text

    account_country: The country of the business associated with this invoice, most often the business creating the invoice.

    Constraints:

    • Maximum length of 5000
  • invoiceAccountName :: Maybe Text

    account_name: The public name of the business associated with this invoice, most often the business creating the invoice.

    Constraints:

    • Maximum length of 5000
  • invoiceAccountTaxIds :: Maybe [InvoiceAccountTaxIds'Variants]

    account_tax_ids: The account tax IDs associated with the invoice. Only editable when the invoice is a draft.

  • invoiceAmountDue :: Int

    amount_due: Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the `amount_due` may be 0. If there is a positive `starting_balance` for the invoice (the customer owes money), the `amount_due` will also take that into account. The charge that gets generated for the invoice will be for the amount specified in `amount_due`.

  • invoiceAmountPaid :: Int

    amount_paid: The amount, in %s, that was paid.

  • invoiceAmountRemaining :: Int

    amount_remaining: The amount remaining, in %s, that is due.

  • invoiceApplicationFeeAmount :: Maybe Int

    application_fee_amount: The fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account when the invoice is paid.

  • invoiceAttemptCount :: Int

    attempt_count: Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule.

  • invoiceAttempted :: Bool

    attempted: Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the `invoice.created` webhook, for example, so you might not want to display that invoice as unpaid to your users.

  • invoiceAutoAdvance :: Maybe Bool

    auto_advance: Controls whether Stripe will perform automatic collection of the invoice. When `false`, the invoice's state will not automatically advance without an explicit action.

  • invoiceAutomaticTax :: AutomaticTax

    automatic_tax:

  • invoiceBillingReason :: Maybe InvoiceBillingReason'

    billing_reason: Indicates the reason why the invoice was created. `subscription_cycle` indicates an invoice created by a subscription advancing into a new period. `subscription_create` indicates an invoice created due to creating a subscription. `subscription_update` indicates an invoice created due to updating a subscription. `subscription` is set for all old invoices to indicate either a change to a subscription or a period advancement. `manual` is set for all invoices unrelated to a subscription (for example: created via the invoice editor). The `upcoming` value is reserved for simulated invoices per the upcoming invoice endpoint. `subscription_threshold` indicates an invoice created due to a billing threshold being reached.

  • invoiceCharge :: Maybe InvoiceCharge'Variants

    charge: ID of the latest charge generated for this invoice, if any.

  • invoiceCollectionMethod :: Maybe InvoiceCollectionMethod'

    collection_method: Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.

  • invoiceCreated :: Int

    created: Time at which the object was created. Measured in seconds since the Unix epoch.

  • invoiceCurrency :: Text

    currency: Three-letter ISO currency code, in lowercase. Must be a supported currency.

  • invoiceCustomFields :: Maybe [InvoiceSettingCustomField]

    custom_fields: Custom fields displayed on the invoice.

  • invoiceCustomer :: Maybe InvoiceCustomer'Variants

    customer: The ID of the customer who will be billed.

  • invoiceCustomerAddress :: Maybe InvoiceCustomerAddress'

    customer_address: The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated.

  • invoiceCustomerEmail :: Maybe Text

    customer_email: The customer's email. Until the invoice is finalized, this field will equal `customer.email`. Once the invoice is finalized, this field will no longer be updated.

    Constraints:

    • Maximum length of 5000
  • invoiceCustomerName :: Maybe Text

    customer_name: The customer's name. Until the invoice is finalized, this field will equal `customer.name`. Once the invoice is finalized, this field will no longer be updated.

    Constraints:

    • Maximum length of 5000
  • invoiceCustomerPhone :: Maybe Text

    customer_phone: The customer's phone number. Until the invoice is finalized, this field will equal `customer.phone`. Once the invoice is finalized, this field will no longer be updated.

    Constraints:

    • Maximum length of 5000
  • invoiceCustomerShipping :: Maybe InvoiceCustomerShipping'

    customer_shipping: The customer's shipping information. Until the invoice is finalized, this field will equal `customer.shipping`. Once the invoice is finalized, this field will no longer be updated.

  • invoiceCustomerTaxExempt :: Maybe InvoiceCustomerTaxExempt'

    customer_tax_exempt: The customer's tax exempt status. Until the invoice is finalized, this field will equal `customer.tax_exempt`. Once the invoice is finalized, this field will no longer be updated.

  • invoiceCustomerTaxIds :: Maybe [InvoicesResourceInvoiceTaxId]

    customer_tax_ids: The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.

  • invoiceDefaultPaymentMethod :: Maybe InvoiceDefaultPaymentMethod'Variants

    default_payment_method: ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.

  • invoiceDefaultSource :: Maybe InvoiceDefaultSource'Variants

    default_source: ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.

  • invoiceDefaultTaxRates :: [TaxRate]

    default_tax_rates: The tax rates applied to this invoice, if any.

  • invoiceDescription :: Maybe Text

    description: An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.

    Constraints:

    • Maximum length of 5000
  • invoiceDiscount :: Maybe InvoiceDiscount'

    discount: Describes the current discount applied to this invoice, if there is one. Not populated if there are multiple discounts.

  • invoiceDiscounts :: Maybe [InvoiceDiscounts'Variants]

    discounts: The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.

  • invoiceDueDate :: Maybe Int

    due_date: The date on which payment for this invoice is due. This value will be `null` for invoices where `collection_method=charge_automatically`.

  • invoiceEndingBalance :: Maybe Int

    ending_balance: Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.

  • invoiceFooter :: Maybe Text

    footer: Footer displayed on the invoice.

    Constraints:

    • Maximum length of 5000
  • invoiceHostedInvoiceUrl :: Maybe Text

    hosted_invoice_url: The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.

    Constraints:

    • Maximum length of 5000
  • invoiceId :: Maybe Text

    id: Unique identifier for the object.

    Constraints:

    • Maximum length of 5000
  • invoiceInvoicePdf :: Maybe Text

    invoice_pdf: The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null.

    Constraints:

    • Maximum length of 5000
  • invoiceLastFinalizationError :: Maybe InvoiceLastFinalizationError'

    last_finalization_error: The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.

  • invoiceLines :: InvoiceLines'

    lines: The individual line items that make up the invoice. `lines` is sorted as follows: invoice items in reverse chronological order, followed by the subscription, if any.

  • invoiceLivemode :: Bool

    livemode: Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.

  • invoiceMetadata :: Maybe Object

    metadata: Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

  • invoiceNextPaymentAttempt :: Maybe Int

    next_payment_attempt: The time at which payment will next be attempted. This value will be `null` for invoices where `collection_method=send_invoice`.

  • invoiceNumber :: Maybe Text

    number: A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.

    Constraints:

    • Maximum length of 5000
  • invoiceOnBehalfOf :: Maybe InvoiceOnBehalfOf'Variants

    on_behalf_of: The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details.

  • invoicePaid :: Bool

    paid: Whether payment was successfully collected for this invoice. An invoice can be paid (most commonly) with a charge or with credit from the customer's account balance.

  • invoicePaymentIntent :: Maybe InvoicePaymentIntent'Variants

    payment_intent: The PaymentIntent associated with this invoice. The PaymentIntent is generated when the invoice is finalized, and can then be used to pay the invoice. Note that voiding an invoice will cancel the PaymentIntent.

  • invoicePaymentSettings :: InvoicesPaymentSettings

    payment_settings:

  • invoicePeriodEnd :: Int

    period_end: End of the usage period during which invoice items were added to this invoice.

  • invoicePeriodStart :: Int

    period_start: Start of the usage period during which invoice items were added to this invoice.

  • invoicePostPaymentCreditNotesAmount :: Int

    post_payment_credit_notes_amount: Total amount of all post-payment credit notes issued for this invoice.

  • invoicePrePaymentCreditNotesAmount :: Int

    pre_payment_credit_notes_amount: Total amount of all pre-payment credit notes issued for this invoice.

  • invoiceReceiptNumber :: Maybe Text

    receipt_number: This is the transaction number that appears on email receipts sent for this invoice.

    Constraints:

    • Maximum length of 5000
  • invoiceStartingBalance :: Int

    starting_balance: Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance.

  • invoiceStatementDescriptor :: Maybe Text

    statement_descriptor: Extra information about an invoice for the customer's credit card statement.

    Constraints:

    • Maximum length of 5000
  • invoiceStatus :: Maybe InvoiceStatus'

    status: The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. Learn more

  • invoiceStatusTransitions :: InvoicesStatusTransitions

    status_transitions:

  • invoiceSubscription :: Maybe InvoiceSubscription'Variants

    subscription: The subscription that this invoice was prepared for, if any.

  • invoiceSubscriptionProrationDate :: Maybe Int

    subscription_proration_date: Only set for upcoming invoices that preview prorations. The time used to calculate prorations.

  • invoiceSubtotal :: Int

    subtotal: Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated

  • invoiceTax :: Maybe Int

    tax: The amount of tax on this invoice. This is the sum of all the tax amounts on this invoice.

  • invoiceThresholdReason :: Maybe InvoiceThresholdReason

    threshold_reason:

  • invoiceTotal :: Int

    total: Total after discounts and taxes.

  • invoiceTotalDiscountAmounts :: Maybe [DiscountsResourceDiscountAmount]

    total_discount_amounts: The aggregate amounts calculated per discount across all line items.

  • invoiceTotalTaxAmounts :: [InvoiceTaxAmount]

    total_tax_amounts: The aggregate amounts calculated per tax rate for all line items.

  • invoiceTransferData :: Maybe InvoiceTransferData'

    transfer_data: The account (if any) the payment will be attributed to for tax reporting, and where funds from the payment will be transferred to for the invoice.

  • invoiceWebhooksDeliveredAt :: Maybe Int

    webhooks_delivered_at: Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have been exhausted. This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.

Instances

Instances details
Eq Invoice Source # 
Instance details

Defined in StripeAPI.Types.Invoice

Methods

(==) :: Invoice -> Invoice -> Bool #

(/=) :: Invoice -> Invoice -> Bool #

Show Invoice Source # 
Instance details

Defined in StripeAPI.Types.Invoice

ToJSON Invoice Source # 
Instance details

Defined in StripeAPI.Types.Invoice

FromJSON Invoice Source # 
Instance details

Defined in StripeAPI.Types.Invoice

data InvoiceBillingReason' Source #

Defines the enum schema located at components.schemas.invoice.properties.billing_reason in the specification.

Indicates the reason why the invoice was created. `subscription_cycle` indicates an invoice created by a subscription advancing into a new period. `subscription_create` indicates an invoice created due to creating a subscription. `subscription_update` indicates an invoice created due to updating a subscription. `subscription` is set for all old invoices to indicate either a change to a subscription or a period advancement. `manual` is set for all invoices unrelated to a subscription (for example: created via the invoice editor). The `upcoming` value is reserved for simulated invoices per the upcoming invoice endpoint. `subscription_threshold` indicates an invoice created due to a billing threshold being reached.

Constructors

InvoiceBillingReason'Other Value

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

InvoiceBillingReason'Typed Text

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

InvoiceBillingReason'EnumAutomaticPendingInvoiceItemInvoice

Represents the JSON value "automatic_pending_invoice_item_invoice"

InvoiceBillingReason'EnumManual

Represents the JSON value "manual"

InvoiceBillingReason'EnumSubscription

Represents the JSON value "subscription"

InvoiceBillingReason'EnumSubscriptionCreate

Represents the JSON value "subscription_create"

InvoiceBillingReason'EnumSubscriptionCycle

Represents the JSON value "subscription_cycle"

InvoiceBillingReason'EnumSubscriptionThreshold

Represents the JSON value "subscription_threshold"

InvoiceBillingReason'EnumSubscriptionUpdate

Represents the JSON value "subscription_update"

InvoiceBillingReason'EnumUpcoming

Represents the JSON value "upcoming"

data InvoiceCollectionMethod' Source #

Defines the enum schema located at components.schemas.invoice.properties.collection_method in the specification.

Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.

Constructors

InvoiceCollectionMethod'Other Value

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

InvoiceCollectionMethod'Typed Text

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

InvoiceCollectionMethod'EnumChargeAutomatically

Represents the JSON value "charge_automatically"

InvoiceCollectionMethod'EnumSendInvoice

Represents the JSON value "send_invoice"

data InvoiceCustomerAddress' Source #

Defines the object schema located at components.schemas.invoice.properties.customer_address.anyOf in the specification.

The customer\'s address. Until the invoice is finalized, this field will equal \`customer.address\`. Once the invoice is finalized, this field will no longer be updated.

Constructors

InvoiceCustomerAddress' 

Fields

data InvoiceCustomerShipping' Source #

Defines the object schema located at components.schemas.invoice.properties.customer_shipping.anyOf in the specification.

The customer\'s shipping information. Until the invoice is finalized, this field will equal \`customer.shipping\`. Once the invoice is finalized, this field will no longer be updated.

Constructors

InvoiceCustomerShipping' 

Fields

data InvoiceCustomerTaxExempt' Source #

Defines the enum schema located at components.schemas.invoice.properties.customer_tax_exempt in the specification.

The customer's tax exempt status. Until the invoice is finalized, this field will equal `customer.tax_exempt`. Once the invoice is finalized, this field will no longer be updated.

Constructors

InvoiceCustomerTaxExempt'Other Value

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

InvoiceCustomerTaxExempt'Typed Text

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

InvoiceCustomerTaxExempt'EnumExempt

Represents the JSON value "exempt"

InvoiceCustomerTaxExempt'EnumNone

Represents the JSON value "none"

InvoiceCustomerTaxExempt'EnumReverse

Represents the JSON value "reverse"

data InvoiceDefaultPaymentMethod'Variants Source #

Defines the oneOf schema located at components.schemas.invoice.properties.default_payment_method.anyOf in the specification.

ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.

data InvoiceDefaultSource'Variants Source #

Defines the oneOf schema located at components.schemas.invoice.properties.default_source.anyOf in the specification.

ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.

data InvoiceDiscount' Source #

Defines the object schema located at components.schemas.invoice.properties.discount.anyOf in the specification.

Describes the current discount applied to this invoice, if there is one. Not populated if there are multiple discounts.

Constructors

InvoiceDiscount' 

Fields

mkInvoiceDiscount' :: InvoiceDiscount' Source #

Create a new InvoiceDiscount' with all required fields.

data InvoiceDiscount'Customer'Variants Source #

Defines the oneOf schema located at components.schemas.invoice.properties.discount.anyOf.properties.customer.anyOf in the specification.

The ID of the customer associated with this discount.

data InvoiceDiscount'Object' Source #

Defines the enum schema located at components.schemas.invoice.properties.discount.anyOf.properties.object in the specification.

String representing the object's type. Objects of the same type share the same value.

Constructors

InvoiceDiscount'Object'Other Value

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

InvoiceDiscount'Object'Typed Text

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

InvoiceDiscount'Object'EnumDiscount

Represents the JSON value "discount"

data InvoiceDiscount'PromotionCode'Variants Source #

Defines the oneOf schema located at components.schemas.invoice.properties.discount.anyOf.properties.promotion_code.anyOf in the specification.

The promotion code applied to create this discount.

data InvoiceLastFinalizationError' Source #

Defines the object schema located at components.schemas.invoice.properties.last_finalization_error.anyOf in the specification.

The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.

Constructors

InvoiceLastFinalizationError' 

Fields

data InvoiceLastFinalizationError'Source' Source #

Defines the object schema located at components.schemas.invoice.properties.last_finalization_error.anyOf.properties.source.anyOf in the specification.

The source object for errors returned on a request involving a source.

Constructors

InvoiceLastFinalizationError'Source' 

Fields

data InvoiceLastFinalizationError'Source'Account'Variants Source #

Defines the oneOf schema located at components.schemas.invoice.properties.last_finalization_error.anyOf.properties.source.anyOf.properties.account.anyOf in the specification.

The ID of the account that the bank account is associated with.

Instances

Instances details
Eq InvoiceLastFinalizationError'Source'Account'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

Show InvoiceLastFinalizationError'Source'Account'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

ToJSON InvoiceLastFinalizationError'Source'Account'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

FromJSON InvoiceLastFinalizationError'Source'Account'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

data InvoiceLastFinalizationError'Source'AvailablePayoutMethods' Source #

Defines the enum schema located at components.schemas.invoice.properties.last_finalization_error.anyOf.properties.source.anyOf.properties.available_payout_methods.items in the specification.

Constructors

InvoiceLastFinalizationError'Source'AvailablePayoutMethods'Other Value

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

InvoiceLastFinalizationError'Source'AvailablePayoutMethods'Typed Text

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

InvoiceLastFinalizationError'Source'AvailablePayoutMethods'EnumInstant

Represents the JSON value "instant"

InvoiceLastFinalizationError'Source'AvailablePayoutMethods'EnumStandard

Represents the JSON value "standard"

Instances

Instances details
Eq InvoiceLastFinalizationError'Source'AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Types.Invoice

Show InvoiceLastFinalizationError'Source'AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Types.Invoice

ToJSON InvoiceLastFinalizationError'Source'AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Types.Invoice

FromJSON InvoiceLastFinalizationError'Source'AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Types.Invoice

data InvoiceLastFinalizationError'Source'Customer'Variants Source #

Defines the oneOf schema located at components.schemas.invoice.properties.last_finalization_error.anyOf.properties.source.anyOf.properties.customer.anyOf in the specification.

The ID of the customer that the bank account is associated with.

Instances

Instances details
Eq InvoiceLastFinalizationError'Source'Customer'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

Show InvoiceLastFinalizationError'Source'Customer'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

ToJSON InvoiceLastFinalizationError'Source'Customer'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

FromJSON InvoiceLastFinalizationError'Source'Customer'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

data InvoiceLastFinalizationError'Source'Object' Source #

Defines the enum schema located at components.schemas.invoice.properties.last_finalization_error.anyOf.properties.source.anyOf.properties.object in the specification.

String representing the object's type. Objects of the same type share the same value.

Constructors

InvoiceLastFinalizationError'Source'Object'Other Value

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

InvoiceLastFinalizationError'Source'Object'Typed Text

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

InvoiceLastFinalizationError'Source'Object'EnumBankAccount

Represents the JSON value "bank_account"

data InvoiceLastFinalizationError'Source'Owner' Source #

Defines the object schema located at components.schemas.invoice.properties.last_finalization_error.anyOf.properties.source.anyOf.properties.owner.anyOf in the specification.

Information about the owner of the payment instrument that may be used or required by particular source types.

Constructors

InvoiceLastFinalizationError'Source'Owner' 

Fields

data InvoiceLastFinalizationError'Source'Owner'Address' Source #

Defines the object schema located at components.schemas.invoice.properties.last_finalization_error.anyOf.properties.source.anyOf.properties.owner.anyOf.properties.address.anyOf in the specification.

Owner\'s address.

Constructors

InvoiceLastFinalizationError'Source'Owner'Address' 

Fields

data InvoiceLastFinalizationError'Source'Owner'VerifiedAddress' Source #

Defines the object schema located at components.schemas.invoice.properties.last_finalization_error.anyOf.properties.source.anyOf.properties.owner.anyOf.properties.verified_address.anyOf in the specification.

Verified owner\'s address. Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.

Constructors

InvoiceLastFinalizationError'Source'Owner'VerifiedAddress' 

Fields

Instances

Instances details
Eq InvoiceLastFinalizationError'Source'Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Types.Invoice

Show InvoiceLastFinalizationError'Source'Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Types.Invoice

ToJSON InvoiceLastFinalizationError'Source'Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Types.Invoice

FromJSON InvoiceLastFinalizationError'Source'Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Types.Invoice

data InvoiceLastFinalizationError'Source'Recipient'Variants Source #

Defines the oneOf schema located at components.schemas.invoice.properties.last_finalization_error.anyOf.properties.source.anyOf.properties.recipient.anyOf in the specification.

The recipient that this card belongs to. This attribute will not be in the card object if the card belongs to a customer or account instead.

Instances

Instances details
Eq InvoiceLastFinalizationError'Source'Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

Show InvoiceLastFinalizationError'Source'Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

ToJSON InvoiceLastFinalizationError'Source'Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

FromJSON InvoiceLastFinalizationError'Source'Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Types.Invoice

data InvoiceLastFinalizationError'Source'Type' Source #

Defines the enum schema located at components.schemas.invoice.properties.last_finalization_error.anyOf.properties.source.anyOf.properties.type in the specification.

The `type` of the source. The `type` is a payment method, one of `ach_credit_transfer`, `ach_debit`, `alipay`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `multibanco`, `klarna`, `p24`, `sepa_debit`, `sofort`, `three_d_secure`, or `wechat`. An additional hash is included on the source with a name matching this value. It contains additional information specific to the payment method used.

Constructors

InvoiceLastFinalizationError'Source'Type'Other Value

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

InvoiceLastFinalizationError'Source'Type'Typed Text

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

InvoiceLastFinalizationError'Source'Type'EnumAchCreditTransfer

Represents the JSON value "ach_credit_transfer"

InvoiceLastFinalizationError'Source'Type'EnumAchDebit

Represents the JSON value "ach_debit"

InvoiceLastFinalizationError'Source'Type'EnumAcssDebit

Represents the JSON value "acss_debit"

InvoiceLastFinalizationError'Source'Type'EnumAlipay

Represents the JSON value "alipay"

InvoiceLastFinalizationError'Source'Type'EnumAuBecsDebit

Represents the JSON value "au_becs_debit"

InvoiceLastFinalizationError'Source'Type'EnumBancontact

Represents the JSON value "bancontact"

InvoiceLastFinalizationError'Source'Type'EnumCard

Represents the JSON value "card"

InvoiceLastFinalizationError'Source'Type'EnumCardPresent

Represents the JSON value "card_present"

InvoiceLastFinalizationError'Source'Type'EnumEps

Represents the JSON value "eps"

InvoiceLastFinalizationError'Source'Type'EnumGiropay

Represents the JSON value "giropay"

InvoiceLastFinalizationError'Source'Type'EnumIdeal

Represents the JSON value "ideal"

InvoiceLastFinalizationError'Source'Type'EnumKlarna

Represents the JSON value "klarna"

InvoiceLastFinalizationError'Source'Type'EnumMultibanco

Represents the JSON value "multibanco"

InvoiceLastFinalizationError'Source'Type'EnumP24

Represents the JSON value "p24"

InvoiceLastFinalizationError'Source'Type'EnumSepaDebit

Represents the JSON value "sepa_debit"

InvoiceLastFinalizationError'Source'Type'EnumSofort

Represents the JSON value "sofort"

InvoiceLastFinalizationError'Source'Type'EnumThreeDSecure

Represents the JSON value "three_d_secure"

InvoiceLastFinalizationError'Source'Type'EnumWechat

Represents the JSON value "wechat"

data InvoiceLastFinalizationError'Type' Source #

Defines the enum schema located at components.schemas.invoice.properties.last_finalization_error.anyOf.properties.type in the specification.

The type of error returned. One of `api_connection_error`, `api_error`, `authentication_error`, `card_error`, `idempotency_error`, `invalid_request_error`, or `rate_limit_error`

Constructors

InvoiceLastFinalizationError'Type'Other Value

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

InvoiceLastFinalizationError'Type'Typed Text

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

InvoiceLastFinalizationError'Type'EnumApiConnectionError

Represents the JSON value "api_connection_error"

InvoiceLastFinalizationError'Type'EnumApiError

Represents the JSON value "api_error"

InvoiceLastFinalizationError'Type'EnumAuthenticationError

Represents the JSON value "authentication_error"

InvoiceLastFinalizationError'Type'EnumCardError

Represents the JSON value "card_error"

InvoiceLastFinalizationError'Type'EnumIdempotencyError

Represents the JSON value "idempotency_error"

InvoiceLastFinalizationError'Type'EnumInvalidRequestError

Represents the JSON value "invalid_request_error"

InvoiceLastFinalizationError'Type'EnumRateLimitError

Represents the JSON value "rate_limit_error"

data InvoiceLines' Source #

Defines the object schema located at components.schemas.invoice.properties.lines in the specification.

The individual line items that make up the invoice. `lines` is sorted as follows: invoice items in reverse chronological order, followed by the subscription, if any.

Constructors

InvoiceLines' 

Fields

data InvoiceOnBehalfOf'Variants Source #

Defines the oneOf schema located at components.schemas.invoice.properties.on_behalf_of.anyOf in the specification.

The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details.

data InvoicePaymentIntent'Variants Source #

Defines the oneOf schema located at components.schemas.invoice.properties.payment_intent.anyOf in the specification.

The PaymentIntent associated with this invoice. The PaymentIntent is generated when the invoice is finalized, and can then be used to pay the invoice. Note that voiding an invoice will cancel the PaymentIntent.

data InvoiceStatus' Source #

Defines the enum schema located at components.schemas.invoice.properties.status in the specification.

The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. Learn more

Constructors

InvoiceStatus'Other Value

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

InvoiceStatus'Typed Text

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

InvoiceStatus'EnumDeleted

Represents the JSON value "deleted"

InvoiceStatus'EnumDraft

Represents the JSON value "draft"

InvoiceStatus'EnumOpen

Represents the JSON value "open"

InvoiceStatus'EnumPaid

Represents the JSON value "paid"

InvoiceStatus'EnumUncollectible

Represents the JSON value "uncollectible"

InvoiceStatus'EnumVoid

Represents the JSON value "void"

data InvoiceTransferData' Source #

Defines the object schema located at components.schemas.invoice.properties.transfer_data.anyOf in the specification.

The account (if any) the payment will be attributed to for tax reporting, and where funds from the payment will be transferred to for the invoice.

Constructors

InvoiceTransferData' 

Fields

data InvoiceTransferData'Destination'Variants Source #

Defines the oneOf schema located at components.schemas.invoice.properties.transfer_data.anyOf.properties.destination.anyOf in the specification.

The account where funds from the payment will be transferred to upon payment success.