struct

Polar::Models::ProductCreateOneTime

Inherits JSON::Serializable < Struct < Value < Object

Model representing a ProductCreateOneTime

This struct is auto-generated from the Polar.sh OpenAPI specification. It uses JSON::Serializable for automatic JSON parsing and serialization.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

attached_custom_fields

List of custom fields to attach.

Source
description

The description of the product.

Source
medias

List of file IDs. Each one must be on the same organization as the product, of type product_media and correctly uploaded.

Source
metadata

Key-value object allowing you to store additional information.

The key must be a string with a maximum length of 40 characters. The value must be either:

A string with a maximum length of 500 characters An integer A floating-point number A boolean

You can store up to 50 key-value pairs.

Source
name

The name of the product.

Source
organization_id

The ID of the organization owning the product. Required unless you use an organization token.

Source
prices

List of available prices for this product. It should contain at most one static price (fixed, custom or free), and any number of metered prices. Metered prices are not supported on one-time purchase products.

Source
recurring_interval

States that the product is a one-time purchase.

Source
recurring_interval_count

One-time products don't have a recurring interval count.

Source