stripeapi-1.0.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

:: forall m. MonadHTTP m 
=> Text

customer | Constraints: Maximum length of 5000

-> Maybe PostCustomersCustomerRequestBody

The request body to send

-> StripeT m (Response PostCustomersCustomerResponse)

Monadic computation which returns 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 object schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostCustomersCustomerRequestBody 

Fields

data PostCustomersCustomerRequestBodyAddress'OneOf1 Source #

Defines the object schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.address.anyOf in the specification.

Constructors

PostCustomersCustomerRequestBodyAddress'OneOf1 

Fields

data PostCustomersCustomerRequestBodyAddress'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.address.anyOf in the specification.

The customer's address.

Instances

Instances details
Eq PostCustomersCustomerRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show 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

data PostCustomersCustomerRequestBodyBankAccount'OneOf1 Source #

Defines the object schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf in the specification.

Instances

Instances details
Eq PostCustomersCustomerRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyBankAccount'OneOf1AccountHolderType' Source #

Defines the enum schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf.properties.account_holder_type in the specification.

Constructors

PostCustomersCustomerRequestBodyBankAccount'OneOf1AccountHolderType'Other Value

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

PostCustomersCustomerRequestBodyBankAccount'OneOf1AccountHolderType'Typed Text

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

PostCustomersCustomerRequestBodyBankAccount'OneOf1AccountHolderType'EnumCompany

Represents the JSON value "company"

PostCustomersCustomerRequestBodyBankAccount'OneOf1AccountHolderType'EnumIndividual

Represents the JSON value "individual"

Instances

Instances details
Eq PostCustomersCustomerRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyBankAccount'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf in the specification.

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

Instances

Instances details
Eq PostCustomersCustomerRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show 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

data PostCustomersCustomerRequestBodyCard'OneOf1 Source #

Defines the object schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf in the specification.

data PostCustomersCustomerRequestBodyCard'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf in the specification.

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

data PostCustomersCustomerRequestBodyInvoiceSettings' Source #

Defines the object schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.invoice_settings in the specification.

Default invoice settings for this customer.

Instances

Instances details
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 object schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.invoice_settings.properties.custom_fields.anyOf.items in the specification.

Instances

Instances details
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'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.invoice_settings.properties.custom_fields.anyOf in the specification.

Instances

Instances details
Eq PostCustomersCustomerRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show 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

data PostCustomersCustomerRequestBodyMetadata'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.metadata.anyOf in the specification.

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`.

Instances

Instances details
Eq PostCustomersCustomerRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyShipping'OneOf1 Source #

Defines the object schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.shipping.anyOf in the specification.

Instances

Instances details
Eq PostCustomersCustomerRequestBodyShipping'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyShipping'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyShipping'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyShipping'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyShipping'OneOf1Address' Source #

Defines the object schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.shipping.anyOf.properties.address in the specification.

Instances

Instances details
Eq PostCustomersCustomerRequestBodyShipping'OneOf1Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyShipping'OneOf1Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyShipping'OneOf1Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyShipping'OneOf1Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyShipping'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.shipping.anyOf in the specification.

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

Instances

Instances details
Eq PostCustomersCustomerRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show 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

data PostCustomersCustomerRequestBodyTax' Source #

Defines the object schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tax in the specification.

Tax details about the customer.

data PostCustomersCustomerRequestBodyTax'IpAddress'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tax.properties.ip_address.anyOf in the specification.

Instances

Instances details
Eq PostCustomersCustomerRequestBodyTax'IpAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show PostCustomersCustomerRequestBodyTax'IpAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

ToJSON PostCustomersCustomerRequestBodyTax'IpAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

FromJSON PostCustomersCustomerRequestBodyTax'IpAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

data PostCustomersCustomerRequestBodyTaxExempt' Source #

Defines the enum schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tax_exempt in the specification.

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

Constructors

PostCustomersCustomerRequestBodyTaxExempt'Other Value

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

PostCustomersCustomerRequestBodyTaxExempt'Typed Text

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

PostCustomersCustomerRequestBodyTaxExempt'EnumEmptyString

Represents the JSON value ""

PostCustomersCustomerRequestBodyTaxExempt'EnumExempt

Represents the JSON value "exempt"

PostCustomersCustomerRequestBodyTaxExempt'EnumNone

Represents the JSON value "none"

PostCustomersCustomerRequestBodyTaxExempt'EnumReverse

Represents the JSON value "reverse"

data PostCustomersCustomerRequestBodyTrialEnd'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.trial_end.anyOf in the specification.

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

Instances details
Eq PostCustomersCustomerRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomer

Show 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

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.