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

RecurlyClient.Types.AccountPurchase

Description

Contains the types generated from the schema AccountPurchase

Synopsis

Documentation

data AccountPurchase Source #

Defines the object schema located at components.schemas.AccountPurchase.allOf in the specification.

Constructors

AccountPurchase 

Fields

  • accountPurchaseAcquisition :: Maybe AccountAcquisitionUpdate

    acquisition

  • accountPurchaseAddress :: Maybe Address

    address

  • accountPurchaseBill_to :: Maybe AccountPurchaseBill_to

    bill_to: An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

    Constraints:

    • Maximum length of 6
  • accountPurchaseBilling_info :: Maybe BillingInfoCreate

    billing_info

  • accountPurchaseCc_emails :: Maybe Text

    cc_emails: Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.

    Constraints:

    • Maximum length of 255
  • accountPurchaseCode :: Text

    code: The unique identifier of the account. This cannot be changed once the account is created.

    Constraints:

    • Maximum length of 50
  • accountPurchaseCompany :: Maybe Text

    company

    Constraints:

    • Maximum length of 100
  • accountPurchaseCustom_fields :: Maybe CustomFields

    custom_fields: The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.

  • accountPurchaseDunning_campaign_id :: Maybe Text

    dunning_campaign_id: Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

  • accountPurchaseEmail :: Maybe Text

    email: The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.

    Constraints:

    • Maximum length of 255
  • accountPurchaseEntity_use_code :: Maybe Text

    entity_use_code: The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive.

  • accountPurchaseExemption_certificate :: Maybe Text

    exemption_certificate: The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.

    Constraints:

    • Maximum length of 30
  • accountPurchaseFirst_name :: Maybe Text

    first_name

    Constraints:

    • Maximum length of 255
  • accountPurchaseId :: Maybe Text

    id: Optional, but if present allows an existing account to be used and updated as part of the purchase.

    Constraints:

    • Maximum length of 13
  • accountPurchaseInvoice_template_id :: Maybe Text

    invoice_template_id: Unique ID to identify an invoice template. Available when the site is on a Pro or Elite plan. Used to specify which invoice template, if any, should be used to generate invoices for the account.

  • accountPurchaseLast_name :: Maybe Text

    last_name

    Constraints:

    • Maximum length of 255
  • accountPurchaseOverride_business_entity_id :: Maybe Text

    override_business_entity_id: Unique ID to identify the business entity assigned to the account. Available when the `Multiple Business Entities` feature is enabled.

  • accountPurchaseParent_account_code :: Maybe Text

    parent_account_code: The account code of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

    Constraints:

    • Maximum length of 50
  • accountPurchaseParent_account_id :: Maybe Text

    parent_account_id: The UUID of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

    Constraints:

    • Maximum length of 13
  • accountPurchasePreferred_locale :: Maybe AccountPurchasePreferred_locale

    preferred_locale: Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.

  • accountPurchasePreferred_time_zone :: Maybe Text

    preferred_time_zone: Used to determine the time zone of emails sent on behalf of the merchant to the customer. Must be a supported IANA time zone name

  • accountPurchaseTax_exempt :: Maybe Bool

    tax_exempt: The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.

  • accountPurchaseTransaction_type :: Maybe AccountPurchaseTransaction_type

    transaction_type: An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

  • accountPurchaseUsername :: Maybe Text

    username: A secondary value for the account.

    Constraints:

    • Maximum length of 255
  • accountPurchaseVat_number :: Maybe Text

    vat_number: The VAT number of the account (to avoid having the VAT applied). This is only used for manually collected invoices.

    Constraints:

    • Maximum length of 20

mkAccountPurchase Source #

Create a new AccountPurchase with all required fields.

data AccountPurchaseBill_to Source #

Defines the enum schema located at components.schemas.AccountPurchase.allOf.properties.bill_to in the specification.

An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

Constructors

AccountPurchaseBill_toOther Value

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

AccountPurchaseBill_toTyped Text

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

AccountPurchaseBill_toEnumParent

Represents the JSON value "parent"

AccountPurchaseBill_toEnumSelf

Represents the JSON value "self"

data AccountPurchasePreferred_locale Source #

Defines the enum schema located at components.schemas.AccountPurchase.allOf.properties.preferred_locale in the specification.

Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.

Constructors

AccountPurchasePreferred_localeOther Value

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

AccountPurchasePreferred_localeTyped Text

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

AccountPurchasePreferred_localeEnumDa_DK

Represents the JSON value "da-DK"

AccountPurchasePreferred_localeEnumDe_CH

Represents the JSON value "de-CH"

AccountPurchasePreferred_localeEnumDe_DE

Represents the JSON value "de-DE"

AccountPurchasePreferred_localeEnumEn_AU

Represents the JSON value "en-AU"

AccountPurchasePreferred_localeEnumEn_CA

Represents the JSON value "en-CA"

AccountPurchasePreferred_localeEnumEn_GB

Represents the JSON value "en-GB"

AccountPurchasePreferred_localeEnumEn_IE

Represents the JSON value "en-IE"

AccountPurchasePreferred_localeEnumEn_NZ

Represents the JSON value "en-NZ"

AccountPurchasePreferred_localeEnumEn_US

Represents the JSON value "en-US"

AccountPurchasePreferred_localeEnumEs_ES

Represents the JSON value "es-ES"

AccountPurchasePreferred_localeEnumEs_MX

Represents the JSON value "es-MX"

AccountPurchasePreferred_localeEnumEs_US

Represents the JSON value "es-US"

AccountPurchasePreferred_localeEnumFi_FI

Represents the JSON value "fi-FI"

AccountPurchasePreferred_localeEnumFr_BE

Represents the JSON value "fr-BE"

AccountPurchasePreferred_localeEnumFr_CA

Represents the JSON value "fr-CA"

AccountPurchasePreferred_localeEnumFr_CH

Represents the JSON value "fr-CH"

AccountPurchasePreferred_localeEnumFr_FR

Represents the JSON value "fr-FR"

AccountPurchasePreferred_localeEnumHi_IN

Represents the JSON value "hi-IN"

AccountPurchasePreferred_localeEnumIt_IT

Represents the JSON value "it-IT"

AccountPurchasePreferred_localeEnumJa_JP

Represents the JSON value "ja-JP"

AccountPurchasePreferred_localeEnumKo_KR

Represents the JSON value "ko-KR"

AccountPurchasePreferred_localeEnumNl_BE

Represents the JSON value "nl-BE"

AccountPurchasePreferred_localeEnumNl_NL

Represents the JSON value "nl-NL"

AccountPurchasePreferred_localeEnumPl_PL

Represents the JSON value "pl-PL"

AccountPurchasePreferred_localeEnumPt_BR

Represents the JSON value "pt-BR"

AccountPurchasePreferred_localeEnumPt_PT

Represents the JSON value "pt-PT"

AccountPurchasePreferred_localeEnumRo_RO

Represents the JSON value "ro-RO"

AccountPurchasePreferred_localeEnumRu_RU

Represents the JSON value "ru-RU"

AccountPurchasePreferred_localeEnumSk_SK

Represents the JSON value "sk-SK"

AccountPurchasePreferred_localeEnumSv_SE

Represents the JSON value "sv-SE"

AccountPurchasePreferred_localeEnumTr_TR

Represents the JSON value "tr-TR"

AccountPurchasePreferred_localeEnumZh_CN

Represents the JSON value "zh-CN"

data AccountPurchaseTransaction_type Source #

Defines the enum schema located at components.schemas.AccountPurchase.allOf.properties.transaction_type in the specification.

An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

Constructors

AccountPurchaseTransaction_typeOther Value

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

AccountPurchaseTransaction_typeTyped Text

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

AccountPurchaseTransaction_typeEnumMoto

Represents the JSON value "moto"