class IronBank::Resources::ProductRatePlan

A product rate plan belongs to a product and holds many product rate plan charges. It represents what a customer is subscribing to.

Public Class Methods

excluded_fields() click to toggle source

NOTE: Zuora doesn't let us query for more than one product rate plan

`ActiveCurrencies` at a time
Calls superclass method
# File lib/iron_bank/resources/product_rate_plan.rb, line 11
def self.excluded_fields
  super + single_resource_query_fields
end
single_resource_query_fields() click to toggle source
# File lib/iron_bank/resources/product_rate_plan.rb, line 15
def self.single_resource_query_fields
  %w[ActiveCurrencies]
end

Public Instance Methods

active_currencies() click to toggle source
# File lib/iron_bank/resources/product_rate_plan.rb, line 26
def active_currencies
  query_string = IronBank::QueryBuilder.zoql(
    self.class.object_name,
    ["ActiveCurrencies"],
    id: id
  )

  IronBank.client.query(query_string)
end