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

RecurlyClient.Types.InvoiceCreate

Description

Contains the types generated from the schema InvoiceCreate

Synopsis

Documentation

data InvoiceCreate Source #

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

Constructors

InvoiceCreate 

Fields

  • invoiceCreateBusiness_entity_code :: Maybe Text

    business_entity_code: The `business_entity_code` is the value that represents a specific business entity for an end customer which will be assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used.

  • invoiceCreateBusiness_entity_id :: Maybe Text

    business_entity_id: The `business_entity_id` is the value that represents a specific business entity for an end customer which will be assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used.

  • invoiceCreateCharge_customer_notes :: Maybe Text

    charge_customer_notes: This will default to the Customer Notes text specified on the Invoice Settings for charge invoices. Specify custom notes to add or override Customer Notes on charge invoices.

  • invoiceCreateCollection_method :: Maybe InvoiceCreateCollection_method

    collection_method: An automatic invoice means a corresponding transaction is run using the account's billing information at the same time the invoice is created. Manual invoices are created without a corresponding transaction. The merchant must enter a manual payment transaction or have the customer pay the invoice with an automatic method, like credit card, PayPal, Amazon, or ACH bank payment.

  • invoiceCreateCredit_customer_notes :: Maybe Text

    credit_customer_notes: This will default to the Customer Notes text specified on the Invoice Settings for credit invoices. Specify customer notes to add or override Customer Notes on credit invoices.

  • invoiceCreateCurrency :: Text

    currency: 3-letter ISO 4217 currency code.

    Constraints:

    • Maximum length of 3
  • invoiceCreateNet_terms :: Maybe Int

    net_terms: Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For `manual` collection method, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example:

    If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.

    For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.

    For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms) or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.

    Constraints:

    • Minimum of 0.0
  • invoiceCreateNet_terms_type :: Maybe InvoiceCreateNet_terms_type

    net_terms_type: 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.

  • invoiceCreatePo_number :: Maybe Text

    po_number: For manual invoicing, this identifies the PO number associated with the subscription.

    Constraints:

    • Maximum length of 50
  • invoiceCreateTerms_and_conditions :: Maybe Text

    terms_and_conditions: This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin. Specify custom notes to add or override Terms and Conditions.

  • invoiceCreateVat_reverse_charge_notes :: Maybe Text

    vat_reverse_charge_notes: VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own. This will default to the VAT Reverse Charge Notes text specified on the Tax Settings page in your Recurly admin, unless custom notes were created with the original subscription.

mkInvoiceCreate Source #

Create a new InvoiceCreate with all required fields.

data InvoiceCreateCollection_method Source #

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

An automatic invoice means a corresponding transaction is run using the account's billing information at the same time the invoice is created. Manual invoices are created without a corresponding transaction. The merchant must enter a manual payment transaction or have the customer pay the invoice with an automatic method, like credit card, PayPal, Amazon, or ACH bank payment.

Constructors

InvoiceCreateCollection_methodOther Value

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

InvoiceCreateCollection_methodTyped Text

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

InvoiceCreateCollection_methodEnumAutomatic

Represents the JSON value "automatic"

InvoiceCreateCollection_methodEnumManual

Represents the JSON value "manual"

data InvoiceCreateNet_terms_type Source #

Defines the enum schema located at components.schemas.InvoiceCreate.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

InvoiceCreateNet_terms_typeOther Value

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

InvoiceCreateNet_terms_typeTyped Text

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

InvoiceCreateNet_terms_typeEnumNet

Represents the JSON value "net"

InvoiceCreateNet_terms_typeEnumEom

Represents the JSON value "eom"