DodoPayments.Customers.PaymentMethods (dodo_payments v0.1.0)

Copy Markdown View Source

Stored customer payment methods.

Summary

Functions

Calls Dodo operation customer_payment_methods_delete (DELETE /customers/{customer_id}/payment-methods/{payment_method_id}). Required parameters: none.

Calls Dodo operation customer_payment_methods_list (GET /customers/{customer_id}/payment-methods). Required parameters: none.

Functions

delete(client, customer_id, payment_method_id, opts \\ [])

@spec delete(
  DodoPayments.Client.t(),
  String.t() | integer(),
  String.t() | integer(),
  keyword()
) ::
  {:ok, nil | DodoPayments.Response.t(nil)} | {:error, Exception.t()}

Calls Dodo operation customer_payment_methods_delete (DELETE /customers/{customer_id}/payment-methods/{payment_method_id}). Required parameters: none.

Options are request-local.

list(client, customer_id, opts \\ [])

Calls Dodo operation customer_payment_methods_list (GET /customers/{customer_id}/payment-methods). Required parameters: none.

Options are request-local.