View Source ExChargebee.PaymentSource (ex_chargebee v0.4.5)

An interface for Interacting with payment_sources

For More information see Chargebee payment_source Documentation

Summary

Functions

Perform a payment_source create_bank_account.

Perform a payment_source create_card.

Perform a payment_source create_using_payment_intent.

Perform a payment_source create_using_permanent_token.

Perform a payment_source create_using_temp_token.

Perform a payment_source create_using_token.

Perform a payment_source create_voucher_payment_source.

Perform a delete on individual payment_source.

Perform a export_payment_source on individual payment_source.

Returns a list of payment_sources. Pagination is handled automatically unless the opt paginate is set to false.

Returns a stream of payment_sources. Pagination is handled automatically as the stream is consumed.

Perform a switch_gateway_account on individual payment_source.

Perform a update_bank_account on individual payment_source.

Perform a update_card on individual payment_source.

Perform a verify_bank_account on individual payment_source.

Functions

Link to this function

create_bank_account(params, opts \\ [])

View Source
@spec create_bank_account(
  map(),
  keyword()
) :: map() | nil

Perform a payment_source create_bank_account.

Find more information in the Chargebee Documentation

Link to this function

create_card(params, opts \\ [])

View Source
@spec create_card(
  map(),
  keyword()
) :: map() | nil

Perform a payment_source create_card.

Find more information in the Chargebee Documentation

Link to this function

create_using_payment_intent(params, opts \\ [])

View Source
@spec create_using_payment_intent(
  map(),
  keyword()
) :: map() | nil

Perform a payment_source create_using_payment_intent.

Find more information in the Chargebee Documentation

Link to this function

create_using_permanent_token(params, opts \\ [])

View Source
@spec create_using_permanent_token(
  map(),
  keyword()
) :: map() | nil

Perform a payment_source create_using_permanent_token.

Find more information in the Chargebee Documentation

Link to this function

create_using_temp_token(params, opts \\ [])

View Source
@spec create_using_temp_token(
  map(),
  keyword()
) :: map() | nil

Perform a payment_source create_using_temp_token.

Find more information in the Chargebee Documentation

Link to this function

create_using_token(params, opts \\ [])

View Source
@spec create_using_token(
  map(),
  keyword()
) :: map() | nil

Perform a payment_source create_using_token.

Find more information in the Chargebee Documentation

Link to this function

create_voucher_payment_source(params, opts \\ [])

View Source
@spec create_voucher_payment_source(
  map(),
  keyword()
) :: map() | nil

Perform a payment_source create_voucher_payment_source.

Find more information in the Chargebee Documentation

Link to this function

delete(resource_id, params \\ %{}, opts \\ [])

View Source
@spec delete(String.t(), map(), keyword()) :: map() | nil

Perform a delete on individual payment_source.

Find more information in the Chargebee Documentation

Link to this function

export_payment_source(resource_id, params \\ %{}, opts \\ [])

View Source
@spec export_payment_source(String.t(), map(), keyword()) :: map() | nil

Perform a export_payment_source on individual payment_source.

Find more information in the Chargebee Documentation

Link to this function

list(params \\ %{}, opts \\ [])

View Source
@spec list(
  map(),
  keyword()
) :: [map()] | nil

Returns a list of payment_sources. Pagination is handled automatically unless the opt paginate is set to false.

opts:

  • site: the site to use for the request. Defaults to the default site.
  • paginate: whether to paginate the results. Defaults to false. If false, all results will be returned.
@spec operations() :: Keyword.t()
Link to this function

retrieve(resource_id, opts \\ [])

View Source
@spec retrieve(
  String.t(),
  keyword()
) :: map() | nil
Link to this function

stream_list(params \\ %{}, opts \\ [])

View Source
@spec stream_list(
  map(),
  keyword()
) :: Enumerable.t()

Returns a stream of payment_sources. Pagination is handled automatically as the stream is consumed.

Link to this function

switch_gateway_account(resource_id, params \\ %{}, opts \\ [])

View Source
@spec switch_gateway_account(String.t(), map(), keyword()) :: map() | nil

Perform a switch_gateway_account on individual payment_source.

Find more information in the Chargebee Documentation

Link to this function

update_bank_account(resource_id, params \\ %{}, opts \\ [])

View Source
@spec update_bank_account(String.t(), map(), keyword()) :: map() | nil

Perform a update_bank_account on individual payment_source.

Find more information in the Chargebee Documentation

Link to this function

update_card(resource_id, params \\ %{}, opts \\ [])

View Source
@spec update_card(String.t(), map(), keyword()) :: map() | nil

Perform a update_card on individual payment_source.

Find more information in the Chargebee Documentation

Link to this function

verify_bank_account(resource_id, params \\ %{}, opts \\ [])

View Source
@spec verify_bank_account(String.t(), map(), keyword()) :: map() | nil

Perform a verify_bank_account on individual payment_source.

Find more information in the Chargebee Documentation