Sha256: 29fe9d7b7b735bba9685183436fe0df55bfa4b78fe8f505b7ffc0a12296d3ce2

Contents?: true

Size: 678 Bytes

Versions: 1

Compression:

Stored size: 678 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module Entitlements
    # An entitlement event either grants or revokes an entitlement to a feature for a customer.
    class Event < APIResource
      extend Stripe::APIOperations::Create

      OBJECT_NAME = "entitlements.event"

      # Create an entitlement event manually, outside of the entitlement events automatically created by Stripe lifecycle events.
      def self.create(params = {}, opts = {})
        request_stripe_object(
          method: :post,
          path: "/v1/entitlements/events",
          params: params,
          opts: opts
        )
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stripe-10.9.0.pre.beta.1 lib/stripe/resources/entitlements/event.rb