Sha256: 893f1d9786dba866b04ca872b62848ff61a7a8febeccc2826a425ae368423e77

Contents?: true

Size: 990 Bytes

Versions: 38

Compression:

Stored size: 990 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  class SubscriptionItem < APIResource
    extend Stripe::APIOperations::Create
    include Stripe::APIOperations::Delete
    extend Stripe::APIOperations::List
    include Stripe::APIOperations::Save
    extend Stripe::APIOperations::NestedResource

    OBJECT_NAME = "subscription_item"

    nested_resource_class_methods :usage_record, operations: %i[create]
    nested_resource_class_methods :usage_record_summary,
                                  operations: %i[list],
                                  resource_plural: "usage_record_summaries"

    def usage_record_summaries(params = {}, opts = {})
      resp, opts = execute_resource_request(:get, resource_url + "/usage_record_summaries", params, opts)
      Util.convert_to_stripe_object(resp.data, opts)
    end
    extend Gem::Deprecate
    deprecate :usage_record_summaries, :"SubscriptionItem.list_usage_record_summaries", 2020, 1
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
stripe-6.3.0 lib/stripe/resources/subscription_item.rb
stripe-6.2.0 lib/stripe/resources/subscription_item.rb
stripe-6.1.0 lib/stripe/resources/subscription_item.rb
stripe-6.0.0 lib/stripe/resources/subscription_item.rb
stripe-5.55.0 lib/stripe/resources/subscription_item.rb
stripe-5.54.0 lib/stripe/resources/subscription_item.rb
stripe-5.53.0 lib/stripe/resources/subscription_item.rb
stripe-5.52.0 lib/stripe/resources/subscription_item.rb
stripe-5.50.0 lib/stripe/resources/subscription_item.rb
stripe-5.49.0 lib/stripe/resources/subscription_item.rb
stripe-5.48.0 lib/stripe/resources/subscription_item.rb
stripe-5.47.0 lib/stripe/resources/subscription_item.rb
stripe-5.46.0 lib/stripe/resources/subscription_item.rb
stripe-5.45.0 lib/stripe/resources/subscription_item.rb
stripe-5.44.0 lib/stripe/resources/subscription_item.rb
stripe-5.43.0 lib/stripe/resources/subscription_item.rb
stripe-5.42.0 lib/stripe/resources/subscription_item.rb
stripe-5.41.0 lib/stripe/resources/subscription_item.rb
stripe-5.40.0 lib/stripe/resources/subscription_item.rb
stripe-5.39.0 lib/stripe/resources/subscription_item.rb