stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostCustomersCustomerSourcesId

Description

Contains the different functions to run the operation postCustomersCustomerSourcesId

Synopsis

Documentation

postCustomersCustomerSourcesId Source #

Arguments

:: forall m. MonadHTTP m 
=> PostCustomersCustomerSourcesIdParameters

Contains all available parameters of this operation (query and path parameters)

-> Maybe PostCustomersCustomerSourcesIdRequestBody

The request body to send

-> ClientT m (Response PostCustomersCustomerSourcesIdResponse)

Monadic computation which returns the result of the operation

POST /v1/customers/{customer}/sources/{id}

<p>Update a specified source for a given customer.</p>

data PostCustomersCustomerSourcesIdParameters Source #

Defines the object schema located at paths./v1/customers/{customer}/sources/{id}.POST.parameters in the specification.

Constructors

PostCustomersCustomerSourcesIdParameters 

Fields

data PostCustomersCustomerSourcesIdRequestBody Source #

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

Constructors

PostCustomersCustomerSourcesIdRequestBody 

Fields

data PostCustomersCustomerSourcesIdRequestBodyAccountHolderType' Source #

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

The type of entity that holds the account. This can be either `individual` or `company`.

Constructors

PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'Other Value

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

PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'Typed Text

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

PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'EnumCompany

Represents the JSON value "company"

PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'EnumIndividual

Represents the JSON value "individual"

Instances

Instances details
Eq PostCustomersCustomerSourcesIdRequestBodyAccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdRequestBodyAccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdRequestBodyAccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdRequestBodyAccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdRequestBodyMetadata'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/sources/{id}.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 PostCustomersCustomerSourcesIdRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdRequestBodyOwner' Source #

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

Instances

Instances details
Eq PostCustomersCustomerSourcesIdRequestBodyOwner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdRequestBodyOwner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdRequestBodyOwner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdRequestBodyOwner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdRequestBodyOwner'Address' Source #

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

Instances

Instances details
Eq PostCustomersCustomerSourcesIdRequestBodyOwner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdRequestBodyOwner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdRequestBodyOwner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdRequestBodyOwner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdResponseBody200 Source #

Defines the object schema located at paths./v1/customers/{customer}/sources/{id}.POST.responses.200.content.application/json.schema.anyOf in the specification.

Constructors

PostCustomersCustomerSourcesIdResponseBody200 

Fields

Instances

Instances details
Eq PostCustomersCustomerSourcesIdResponseBody200 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdResponseBody200 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdResponseBody200 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdResponseBody200 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdResponseBody200Account'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/sources/{id}.POST.responses.200.content.application/json.schema.anyOf.properties.account.anyOf in the specification.

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

Instances

Instances details
Eq PostCustomersCustomerSourcesIdResponseBody200Account'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdResponseBody200Account'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdResponseBody200Account'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdResponseBody200Account'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods' Source #

Defines the enum schema located at paths./v1/customers/{customer}/sources/{id}.POST.responses.200.content.application/json.schema.anyOf.properties.available_payout_methods.items in the specification.

Constructors

PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'Other Value

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

PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'Typed Text

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

PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'EnumInstant

Represents the JSON value "instant"

PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'EnumStandard

Represents the JSON value "standard"

Instances

Instances details
Eq PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdResponseBody200Customer'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/sources/{id}.POST.responses.200.content.application/json.schema.anyOf.properties.customer.anyOf in the specification.

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

Instances

Instances details
Eq PostCustomersCustomerSourcesIdResponseBody200Customer'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdResponseBody200Customer'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdResponseBody200Customer'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdResponseBody200Customer'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdResponseBody200Object' Source #

Defines the enum schema located at paths./v1/customers/{customer}/sources/{id}.POST.responses.200.content.application/json.schema.anyOf.properties.object in the specification.

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

Constructors

PostCustomersCustomerSourcesIdResponseBody200Object'Other Value

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

PostCustomersCustomerSourcesIdResponseBody200Object'Typed Text

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

PostCustomersCustomerSourcesIdResponseBody200Object'EnumCard

Represents the JSON value "card"

Instances

Instances details
Eq PostCustomersCustomerSourcesIdResponseBody200Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdResponseBody200Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdResponseBody200Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdResponseBody200Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdResponseBody200Owner' Source #

Defines the object schema located at paths./v1/customers/{customer}/sources/{id}.POST.responses.200.content.application/json.schema.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

PostCustomersCustomerSourcesIdResponseBody200Owner' 

Fields

Instances

Instances details
Eq PostCustomersCustomerSourcesIdResponseBody200Owner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdResponseBody200Owner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdResponseBody200Owner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdResponseBody200Owner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdResponseBody200Owner'Address' Source #

Defines the object schema located at paths./v1/customers/{customer}/sources/{id}.POST.responses.200.content.application/json.schema.anyOf.properties.owner.anyOf.properties.address.anyOf in the specification.

Owner\'s address.

Constructors

PostCustomersCustomerSourcesIdResponseBody200Owner'Address' 

Fields

Instances

Instances details
Eq PostCustomersCustomerSourcesIdResponseBody200Owner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdResponseBody200Owner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdResponseBody200Owner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdResponseBody200Owner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' Source #

Defines the object schema located at paths./v1/customers/{customer}/sources/{id}.POST.responses.200.content.application/json.schema.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

PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' 

Fields

Instances

Instances details
Eq PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdResponseBody200Recipient'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/sources/{id}.POST.responses.200.content.application/json.schema.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 PostCustomersCustomerSourcesIdResponseBody200Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdResponseBody200Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdResponseBody200Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdResponseBody200Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

data PostCustomersCustomerSourcesIdResponseBody200Type' Source #

Defines the enum schema located at paths./v1/customers/{customer}/sources/{id}.POST.responses.200.content.application/json.schema.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

PostCustomersCustomerSourcesIdResponseBody200Type'Other Value

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

PostCustomersCustomerSourcesIdResponseBody200Type'Typed Text

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

PostCustomersCustomerSourcesIdResponseBody200Type'EnumAchCreditTransfer

Represents the JSON value "ach_credit_transfer"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumAchDebit

Represents the JSON value "ach_debit"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumAcssDebit

Represents the JSON value "acss_debit"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumAlipay

Represents the JSON value "alipay"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumAuBecsDebit

Represents the JSON value "au_becs_debit"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumBancontact

Represents the JSON value "bancontact"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumCard

Represents the JSON value "card"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumCardPresent

Represents the JSON value "card_present"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumEps

Represents the JSON value "eps"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumGiropay

Represents the JSON value "giropay"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumIdeal

Represents the JSON value "ideal"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumKlarna

Represents the JSON value "klarna"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumMultibanco

Represents the JSON value "multibanco"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumP24

Represents the JSON value "p24"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumSepaDebit

Represents the JSON value "sepa_debit"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumSofort

Represents the JSON value "sofort"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumThreeDSecure

Represents the JSON value "three_d_secure"

PostCustomersCustomerSourcesIdResponseBody200Type'EnumWechat

Represents the JSON value "wechat"

Instances

Instances details
Eq PostCustomersCustomerSourcesIdResponseBody200Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

Show PostCustomersCustomerSourcesIdResponseBody200Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

ToJSON PostCustomersCustomerSourcesIdResponseBody200Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId

FromJSON PostCustomersCustomerSourcesIdResponseBody200Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSourcesId