class

Polar::Api::CustomerPortal::Downloadables

Inherits Reference < Object

API client for downloadables operations in customer_portal context

Constants

Log = ::Log.for(self)

Constructors

new(client : Client)

Creates a new Downloadables instance

@param client [Client] The Polar API client instance

Source

Instance methods

list(benefit_id : String | Nil = nil, page : Int32 | Nil = nil, limit : Int32 | Nil = nil) : Polar::Models::ListResource(Polar::Models::DownloadableRead)

List Downloadables

Scopes: customer_portal:read customer_portal:write

Endpoint: GET /v1/customer-portal/downloadables/

Parameters:

  • benefit_id (optional): Filter by benefit ID.
  • page (optional): Page number, defaults to 1.
  • limit (optional): Size of a page, defaults to 10. Maximum is 100.

Returns: Polar::Models::ListResource(Polar::Models::DownloadableRead)

Raises:

  • ResourceNotFoundError on 404
  • NotPermittedError on 403
  • HTTPValidationError on 422
  • PolarError on other errors
Source