Sha256: c56af85a8f59dc104181ccfdbd69e32eb6b8d95e93294a466190bd5ce954e7f8
Contents?: true
Size: 1.07 KB
Versions: 20
Compression:
Stored size: 1.07 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe class SubscriptionItemUsageRecordSummaryService < StripeService # For the specified subscription item, returns a list of summary objects. Each object in the list provides usage information that's been summarized from multiple usage records and over a subscription billing period (e.g., 15 usage records in the month of September). # # The list is sorted in reverse-chronological order (newest first). The first list item represents the most current usage period that hasn't ended yet. Since new usage records can still be added, the returned summary information for the subscription item's ID should be seen as unstable until the subscription billing period ends. def list(subscription_item, params = {}, opts = {}) request( method: :get, path: format("/v1/subscription_items/%<subscription_item>s/usage_record_summaries", { subscription_item: CGI.escape(subscription_item) }), params: params, opts: opts, base_address: :api ) end end end
Version data entries
20 entries across 20 versions & 1 rubygems