The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::API::Stripe::Billing::Plan::Tiers - A Stripe Plan Tiers Object

SYNOPSIS

    my $tiers = $plan->tiers({
        flat_amount => 2000,
        flat_amount_decimal => 2000,
    });

VERSION

    v0.100.0

DESCRIPTION

Each element represents a pricing tier. This parameter requires billing_scheme to be set to tiered. See also the documentation for billing_scheme.

CONSTRUCTOR

new( %ARG )

Creates a new Net::API::Stripe::Billing::Plan::Tiers object. It may also take an hash like arguments, that also are method of the same name.

METHODS

flat_amount integer

Price for the entire tier. This is a AI::API::Stripe::Number object.

flat_amount_decimal decimal string

Same as flat_amount, but contains a decimal value with at most 12 decimal places.

This is a AI::API::Stripe::Number object.

unit_amount integer

Per unit price for units relevant to the tier. This is a AI::API::Stripe::Number object.

unit_amount_decimal decimal string

Same as unit_amount, but contains a decimal value with at most 12 decimal places. This is a AI::API::Stripe::Number object.

up_to integer

Up to and including to this quantity will be contained in the tier. This is a AI::API::Stripe::Number object.

API SAMPLE

    {
      "id": "expert-monthly-jpy",
      "object": "plan",
      "active": true,
      "aggregate_usage": null,
      "amount": 8000,
      "amount_decimal": "8000",
      "billing_scheme": "per_unit",
      "created": 1507273129,
      "currency": "jpy",
      "interval": "month",
      "interval_count": 1,
      "livemode": false,
      "metadata": {},
      "nickname": null,
      "product": "prod_fake123456789",
      "tiers": null,
      "tiers_mode": null,
      "transform_usage": null,
      "trial_period_days": null,
      "usage_type": "licensed"
    }

HISTORY

v0.1

Initial version

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Stripe API documentation:

https://stripe.com/docs/api/plans/object

COPYRIGHT & LICENSE

Copyright (c) 2019-2020 DEGUEST Pte. Ltd.

You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.