stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostCustomersCustomer

Description

Contains the different functions to run the operation postCustomersCustomer

Synopsis

Documentation

postCustomersCustomer Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> String

customer | Constraints: Maximum length of 5000

-> PostCustomersCustomerRequestBody

The request body to send

-> m (Either HttpException (Response PostCustomersCustomerResponse))

Monad containing the result of the operation

POST /v1/customers/{customer}

<p>Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the <strong>source</strong> parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the <strong>source</strong> parameter: for each of the customer’s current subscriptions, if the subscription bills automatically and is in the <code>past_due</code> state, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the <strong>default_source</strong> for a customer will not trigger this behavior.</p>

<p>This request accepts mostly the same arguments as the customer creation call.</p>

data PostCustomersCustomerRequestBody Source #

Defines the data type for the schema postCustomersCustomerRequestBody

Constructors

PostCustomersCustomerRequestBody 

Fields

data PostCustomersCustomerRequestBodyAddress'OneOf1 Source #

Defines the enum schema postCustomersCustomerRequestBodyAddress'OneOf1

data PostCustomersCustomerRequestBodyAddress'OneOf2 Source #

Defines the data type for the schema postCustomersCustomerRequestBodyAddress'OneOf2

Constructors

PostCustomersCustomerRequestBodyAddress'OneOf2 

Fields

data PostCustomersCustomerRequestBodyAddress'Variants Source #

Define the one-of schema postCustomersCustomerRequestBodyAddress'

The customer's address.

Instances
Eq PostCustomersCustomerRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Generic PostCustomersCustomerRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyAddress'Variants = D1 (MetaData "PostCustomersCustomerRequestBodyAddress'Variants" "StripeAPI.Operations.PostCustomersCustomer" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerRequestBodyAddress'PostCustomersCustomerRequestBodyAddress'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerRequestBodyAddress'OneOf1)) :+: C1 (MetaCons "PostCustomersCustomerRequestBodyAddress'PostCustomersCustomerRequestBodyAddress'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerRequestBodyAddress'OneOf2)))

data PostCustomersCustomerRequestBodyBankAccount'OneOf2 Source #

Defines the data type for the schema postCustomersCustomerRequestBodyBank_account'OneOf2

Instances
Eq PostCustomersCustomerRequestBodyBankAccount'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyBankAccount'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyBankAccount'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyBankAccount'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyBankAccount'OneOf2AccountHolderType' Source #

Defines the enum schema postCustomersCustomerRequestBodyBank_account'OneOf2Account_holder_type'

Instances
Eq PostCustomersCustomerRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyBankAccount'OneOf2Object' Source #

Defines the enum schema postCustomersCustomerRequestBodyBank_account'OneOf2Object'

Instances
Eq PostCustomersCustomerRequestBodyBankAccount'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyBankAccount'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyBankAccount'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyBankAccount'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyBankAccount'Variants Source #

Define the one-of schema postCustomersCustomerRequestBodyBank_account'

Either a token, like the ones returned by Stripe.js, or a dictionary containing a user's bank account details.

Instances
Eq PostCustomersCustomerRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Generic PostCustomersCustomerRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyBankAccount'Variants = D1 (MetaData "PostCustomersCustomerRequestBodyBankAccount'Variants" "StripeAPI.Operations.PostCustomersCustomer" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerRequestBodyBankAccount'String" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)) :+: C1 (MetaCons "PostCustomersCustomerRequestBodyBankAccount'PostCustomersCustomerRequestBodyBankAccount'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerRequestBodyBankAccount'OneOf2)))

data PostCustomersCustomerRequestBodyCard'OneOf2 Source #

Defines the data type for the schema postCustomersCustomerRequestBodyCard'OneOf2

data PostCustomersCustomerRequestBodyCard'OneOf2Metadata' Source #

Defines the data type for the schema postCustomersCustomerRequestBodyCard'OneOf2Metadata'

Instances
Eq PostCustomersCustomerRequestBodyCard'OneOf2Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyCard'OneOf2Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyCard'OneOf2Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyCard'OneOf2Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyCard'OneOf2Object' Source #

Defines the enum schema postCustomersCustomerRequestBodyCard'OneOf2Object'

Instances
Eq PostCustomersCustomerRequestBodyCard'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyCard'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyCard'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyCard'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyCard'Variants Source #

Define the one-of schema postCustomersCustomerRequestBodyCard'

A token, like the ones returned by Stripe.js.

Instances
Eq PostCustomersCustomerRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Generic PostCustomersCustomerRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyCard'Variants = D1 (MetaData "PostCustomersCustomerRequestBodyCard'Variants" "StripeAPI.Operations.PostCustomersCustomer" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerRequestBodyCard'String" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)) :+: C1 (MetaCons "PostCustomersCustomerRequestBodyCard'PostCustomersCustomerRequestBodyCard'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerRequestBodyCard'OneOf2)))

data PostCustomersCustomerRequestBodyInvoiceSettings' Source #

Defines the data type for the schema postCustomersCustomerRequestBodyInvoice_settings'

Default invoice settings for this customer.

Instances
Eq PostCustomersCustomerRequestBodyInvoiceSettings' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyInvoiceSettings' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyInvoiceSettings' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyInvoiceSettings' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf1 Source #

Defines the enum schema postCustomersCustomerRequestBodyInvoice_settings'Custom_fields'OneOf1

Instances
Eq PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf2 Source #

Defines the data type for the schema postCustomersCustomerRequestBodyInvoice_settings'Custom_fields'OneOf2

Instances
Eq PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'Variants Source #

Define the one-of schema postCustomersCustomerRequestBodyInvoice_settings'Custom_fields'

Instances
Eq PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Generic PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'Variants = D1 (MetaData "PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'Variants" "StripeAPI.Operations.PostCustomersCustomer" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf1)) :+: C1 (MetaCons "PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'ListPostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'OneOf2])))

data PostCustomersCustomerRequestBodyMetadata' Source #

Defines the data type for the schema postCustomersCustomerRequestBodyMetadata'

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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.

data PostCustomersCustomerRequestBodyShipping'OneOf1 Source #

Defines the enum schema postCustomersCustomerRequestBodyShipping'OneOf1

data PostCustomersCustomerRequestBodyShipping'OneOf2 Source #

Defines the data type for the schema postCustomersCustomerRequestBodyShipping'OneOf2

data PostCustomersCustomerRequestBodyShipping'OneOf2Address' Source #

Defines the data type for the schema postCustomersCustomerRequestBodyShipping'OneOf2Address'

Instances
Eq PostCustomersCustomerRequestBodyShipping'OneOf2Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyShipping'OneOf2Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyShipping'OneOf2Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyShipping'OneOf2Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyShipping'Variants Source #

Define the one-of schema postCustomersCustomerRequestBodyShipping'

The customer's shipping information. Appears on invoices emailed to this customer.

Instances
Eq PostCustomersCustomerRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Generic PostCustomersCustomerRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyShipping'Variants = D1 (MetaData "PostCustomersCustomerRequestBodyShipping'Variants" "StripeAPI.Operations.PostCustomersCustomer" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerRequestBodyShipping'PostCustomersCustomerRequestBodyShipping'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerRequestBodyShipping'OneOf1)) :+: C1 (MetaCons "PostCustomersCustomerRequestBodyShipping'PostCustomersCustomerRequestBodyShipping'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerRequestBodyShipping'OneOf2)))

data PostCustomersCustomerRequestBodyTaxExempt' Source #

Defines the enum schema postCustomersCustomerRequestBodyTax_exempt'

The customer's tax exemption. One of `none`, `exempt`, or `reverse`.

data PostCustomersCustomerRequestBodyTrialEnd'OneOf1 Source #

Defines the enum schema postCustomersCustomerRequestBodyTrial_end'OneOf1

data PostCustomersCustomerRequestBodyTrialEnd'Variants Source #

Define the one-of schema postCustomersCustomerRequestBodyTrial_end'

Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, trial_end will override the default trial period of the plan the customer is being subscribed to. The special value `now` can be provided to end the customer's trial immediately. Can be at most two years from `billing_cycle_anchor`.

Instances
Eq PostCustomersCustomerRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Generic PostCustomersCustomerRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

type Rep PostCustomersCustomerRequestBodyTrialEnd'Variants = D1 (MetaData "PostCustomersCustomerRequestBodyTrialEnd'Variants" "StripeAPI.Operations.PostCustomersCustomer" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerRequestBodyTrialEnd'PostCustomersCustomerRequestBodyTrialEnd'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerRequestBodyTrialEnd'OneOf1)) :+: C1 (MetaCons "PostCustomersCustomerRequestBodyTrialEnd'Integer" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer)))

data PostCustomersCustomerResponse Source #

Represents a response of the operation postCustomersCustomer.

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), PostCustomersCustomerResponseError is used.

Constructors

PostCustomersCustomerResponseError String

Means either no matching case available or a parse error

PostCustomersCustomerResponse200 Customer

Successful response.

PostCustomersCustomerResponseDefault Error

Error response.