Dnsimple.Certificates.purchase_letsencrypt_certificate_renewal

You're seeing just the function purchase_letsencrypt_certificate_renewal, go back to Dnsimple.Certificates module for more information.
Link to this function

purchase_letsencrypt_certificate_renewal(client, account_id, domain_id, certificate_id, attributes \\ %{}, options \\ [])

Specs

purchase_letsencrypt_certificate_renewal(
  Dnsimple.Client.t(),
  String.t() | integer(),
  String.t() | integer(),
  integer(),
  Keyword.t(),
  Keyword.t()
) :: {:ok | :error, Dnsimple.Response.t()}

Purchase a Let's Encrypt certificate renewal.

This method creates a new renewal order. The order ID should be used to request the issuance of the certificate using #issue_letsencrypt_certificate_renewal.

See:

Examples

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Certificates.purchase_letsencrypt_certificate_renewal(client, account_id = "1010", domain_id = "example.com", certificate_id = 100)
renewal_id      = response.data.id

# Enable auto-renew on purchase
client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Certificates.purchase_letsencrypt_certificate_renewal(client, account_id = "1010", domain_id = "example.com", certificate_id = 100, auto_renew: true)