struct

Polar::Models::ProductUpdate

Inherits JSON::Serializable < Struct < Value < Object

Model representing a ProductUpdate

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
Source
description

The description of the product.

Source
is_archived

Whether the product is archived. If true, the product won't be available for purchase anymore. Existing customers will still have access to their benefits, and subscriptions will continue normally.

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
Source
prices

List of available prices for this product. If you want to keep existing prices, include them in the list as an ExistingProductPrice object.

Source
recurring_interval

The recurring interval of the product. If None, the product is a one-time purchase. Can only be set on legacy recurring products. Once set, it can't be changed.

Source
recurring_interval_count

Number of interval units of the subscription. If this is set to 1 the charge will happen every interval (e.g. every month), if set to 2 it will be every other month, and so on. Once set, it can't be changed.

Source
trial_interval

The interval unit for the trial period.

Source
trial_interval_count

The number of interval units for the trial period.

Source