In v2 endpoints, URLs are commonly represented as objects with an href and type field.
href
type
@type t() :: %MollieAPI.Model.Url{href: String.t(), type: String.t()}