stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostCustomersCustomerCardsId

Description

Contains the different functions to run the operation postCustomersCustomerCardsId

Synopsis

Documentation

postCustomersCustomerCardsId Source #

Arguments

:: forall m. MonadHTTP m 
=> PostCustomersCustomerCardsIdParameters

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

-> Maybe PostCustomersCustomerCardsIdRequestBody

The request body to send

-> ClientT m (Response PostCustomersCustomerCardsIdResponse)

Monadic computation which returns the result of the operation

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

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

data PostCustomersCustomerCardsIdParameters Source #

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

Constructors

PostCustomersCustomerCardsIdParameters 

Fields

data PostCustomersCustomerCardsIdRequestBody Source #

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

Constructors

PostCustomersCustomerCardsIdRequestBody 

Fields

data PostCustomersCustomerCardsIdRequestBodyAccountHolderType' Source #

Defines the enum schema located at paths./v1/customers/{customer}/cards/{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

PostCustomersCustomerCardsIdRequestBodyAccountHolderType'Other Value

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

PostCustomersCustomerCardsIdRequestBodyAccountHolderType'Typed Text

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

PostCustomersCustomerCardsIdRequestBodyAccountHolderType'EnumCompany

Represents the JSON value "company"

PostCustomersCustomerCardsIdRequestBodyAccountHolderType'EnumIndividual

Represents the JSON value "individual"

Instances

Instances details
Eq PostCustomersCustomerCardsIdRequestBodyAccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdRequestBodyAccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdRequestBodyAccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdRequestBodyAccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

data PostCustomersCustomerCardsIdRequestBodyMetadata'Variants Source #

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

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

data PostCustomersCustomerCardsIdRequestBodyOwner' Source #

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

data PostCustomersCustomerCardsIdRequestBodyOwner'Address' Source #

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

Instances

Instances details
Eq PostCustomersCustomerCardsIdRequestBodyOwner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdRequestBodyOwner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdRequestBodyOwner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdRequestBodyOwner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

data PostCustomersCustomerCardsIdResponseBody200 Source #

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

Constructors

PostCustomersCustomerCardsIdResponseBody200 

Fields

data PostCustomersCustomerCardsIdResponseBody200Account'Variants Source #

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

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdResponseBody200Account'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdResponseBody200Account'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdResponseBody200Account'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

data PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods' Source #

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

Constructors

PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'Other Value

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

PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'Typed Text

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

PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'EnumInstant

Represents the JSON value "instant"

PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'EnumStandard

Represents the JSON value "standard"

Instances

Instances details
Eq PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

data PostCustomersCustomerCardsIdResponseBody200Customer'Variants Source #

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

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdResponseBody200Customer'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdResponseBody200Customer'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdResponseBody200Customer'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

data PostCustomersCustomerCardsIdResponseBody200Object' Source #

Defines the enum schema located at paths./v1/customers/{customer}/cards/{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

PostCustomersCustomerCardsIdResponseBody200Object'Other Value

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

PostCustomersCustomerCardsIdResponseBody200Object'Typed Text

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

PostCustomersCustomerCardsIdResponseBody200Object'EnumCard

Represents the JSON value "card"

Instances

Instances details
Eq PostCustomersCustomerCardsIdResponseBody200Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdResponseBody200Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdResponseBody200Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdResponseBody200Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

data PostCustomersCustomerCardsIdResponseBody200Owner' Source #

Defines the object schema located at paths./v1/customers/{customer}/cards/{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

PostCustomersCustomerCardsIdResponseBody200Owner' 

Fields

Instances

Instances details
Eq PostCustomersCustomerCardsIdResponseBody200Owner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdResponseBody200Owner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdResponseBody200Owner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdResponseBody200Owner' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

data PostCustomersCustomerCardsIdResponseBody200Owner'Address' Source #

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

Owner\'s address.

Constructors

PostCustomersCustomerCardsIdResponseBody200Owner'Address' 

Fields

Instances

Instances details
Eq PostCustomersCustomerCardsIdResponseBody200Owner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdResponseBody200Owner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdResponseBody200Owner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdResponseBody200Owner'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

data PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' Source #

Defines the object schema located at paths./v1/customers/{customer}/cards/{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

PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' 

Fields

Instances

Instances details
Eq PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

data PostCustomersCustomerCardsIdResponseBody200Recipient'Variants Source #

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

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdResponseBody200Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdResponseBody200Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdResponseBody200Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

data PostCustomersCustomerCardsIdResponseBody200Type' Source #

Defines the enum schema located at paths./v1/customers/{customer}/cards/{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

PostCustomersCustomerCardsIdResponseBody200Type'Other Value

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

PostCustomersCustomerCardsIdResponseBody200Type'Typed Text

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

PostCustomersCustomerCardsIdResponseBody200Type'EnumAchCreditTransfer

Represents the JSON value "ach_credit_transfer"

PostCustomersCustomerCardsIdResponseBody200Type'EnumAchDebit

Represents the JSON value "ach_debit"

PostCustomersCustomerCardsIdResponseBody200Type'EnumAcssDebit

Represents the JSON value "acss_debit"

PostCustomersCustomerCardsIdResponseBody200Type'EnumAlipay

Represents the JSON value "alipay"

PostCustomersCustomerCardsIdResponseBody200Type'EnumAuBecsDebit

Represents the JSON value "au_becs_debit"

PostCustomersCustomerCardsIdResponseBody200Type'EnumBancontact

Represents the JSON value "bancontact"

PostCustomersCustomerCardsIdResponseBody200Type'EnumCard

Represents the JSON value "card"

PostCustomersCustomerCardsIdResponseBody200Type'EnumCardPresent

Represents the JSON value "card_present"

PostCustomersCustomerCardsIdResponseBody200Type'EnumEps

Represents the JSON value "eps"

PostCustomersCustomerCardsIdResponseBody200Type'EnumGiropay

Represents the JSON value "giropay"

PostCustomersCustomerCardsIdResponseBody200Type'EnumIdeal

Represents the JSON value "ideal"

PostCustomersCustomerCardsIdResponseBody200Type'EnumKlarna

Represents the JSON value "klarna"

PostCustomersCustomerCardsIdResponseBody200Type'EnumMultibanco

Represents the JSON value "multibanco"

PostCustomersCustomerCardsIdResponseBody200Type'EnumP24

Represents the JSON value "p24"

PostCustomersCustomerCardsIdResponseBody200Type'EnumSepaDebit

Represents the JSON value "sepa_debit"

PostCustomersCustomerCardsIdResponseBody200Type'EnumSofort

Represents the JSON value "sofort"

PostCustomersCustomerCardsIdResponseBody200Type'EnumThreeDSecure

Represents the JSON value "three_d_secure"

PostCustomersCustomerCardsIdResponseBody200Type'EnumWechat

Represents the JSON value "wechat"

Instances

Instances details
Eq PostCustomersCustomerCardsIdResponseBody200Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

Show PostCustomersCustomerCardsIdResponseBody200Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

ToJSON PostCustomersCustomerCardsIdResponseBody200Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId

FromJSON PostCustomersCustomerCardsIdResponseBody200Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerCardsId