Class: Recurly::Resources::TierPricing

Inherits:
Recurly::Resource show all
Defined in:
lib/recurly/resources/tier_pricing.rb

Instance Attribute Summary collapse

Attributes inherited from Recurly::Resource

#attributes

Method Summary

Methods inherited from Recurly::Resource

#==, #get_response, #inspect, #requires_client?, #to_json, #to_s

Methods included from Schema::SchemaFactory

#schema

Methods included from Schema::ResourceCaster

#cast

Methods included from Schema::SchemaValidator

#get_did_you_mean, #validate!, #validate_attribute!

Instance Attribute Details

#currencyString

Returns 3-letter ISO 4217 currency code.

Returns:

  • (String)

    3-letter ISO 4217 currency code.



11
# File 'lib/recurly/resources/tier_pricing.rb', line 11

define_attribute :currency, String

#unit_amountFloat

Returns Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.

Returns:

  • (Float)

    Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.



15
# File 'lib/recurly/resources/tier_pricing.rb', line 15

define_attribute :unit_amount, Float

#unit_amount_decimalString

Returns Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

Returns:

  • (String)

    Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.



19
# File 'lib/recurly/resources/tier_pricing.rb', line 19

define_attribute :unit_amount_decimal, String