Class: Stigg::Resources::V1

Inherits:
Object
  • Object
show all
Defined in:
lib/stigg/resources/v1.rb,
lib/stigg/resources/v1/plans.rb,
lib/stigg/resources/v1/usage.rb,
lib/stigg/resources/v1/addons.rb,
lib/stigg/resources/v1/events.rb,
lib/stigg/resources/v1/coupons.rb,
lib/stigg/resources/v1/features.rb,
lib/stigg/resources/v1/products.rb,
lib/stigg/resources/v1/customers.rb,
lib/stigg/resources/v1/subscriptions.rb,
lib/stigg/resources/v1/events/credits.rb,
lib/stigg/resources/v1/plans/entitlements.rb,
lib/stigg/resources/v1/addons/entitlements.rb,
lib/stigg/resources/v1/subscriptions/usage.rb,
lib/stigg/resources/v1/events/credits/grants.rb,
lib/stigg/resources/v1/subscriptions/invoice.rb,
lib/stigg/resources/v1/customers/integrations.rb,
lib/stigg/resources/v1/customers/payment_method.rb,
lib/stigg/resources/v1/subscriptions/future_update.rb,
lib/stigg/resources/v1/customers/promotional_entitlements.rb

Defined Under Namespace

Classes: Addons, Coupons, Customers, Events, Features, Plans, Products, Subscriptions, Usage

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ V1

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of V1.

Parameters:



43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/stigg/resources/v1.rb', line 43

def initialize(client:)
  @client = client
  @customers = Stigg::Resources::V1::Customers.new(client: client)
  @subscriptions = Stigg::Resources::V1::Subscriptions.new(client: client)
  @coupons = Stigg::Resources::V1::Coupons.new(client: client)
  @events = Stigg::Resources::V1::Events.new(client: client)
  @features = Stigg::Resources::V1::Features.new(client: client)
  @addons = Stigg::Resources::V1::Addons.new(client: client)
  @plans = Stigg::Resources::V1::Plans.new(client: client)
  @usage = Stigg::Resources::V1::Usage.new(client: client)
  @products = Stigg::Resources::V1::Products.new(client: client)
end

Instance Attribute Details

#addonsStigg::Resources::V1::Addons (readonly)

Operations related to addons



26
27
28
# File 'lib/stigg/resources/v1.rb', line 26

def addons
  @addons
end

#couponsStigg::Resources::V1::Coupons (readonly)

Operations related to coupons



14
15
16
# File 'lib/stigg/resources/v1.rb', line 14

def coupons
  @coupons
end

#customersStigg::Resources::V1::Customers (readonly)



7
8
9
# File 'lib/stigg/resources/v1.rb', line 7

def customers
  @customers
end

#eventsStigg::Resources::V1::Events (readonly)

Operations related to usage & metering



18
19
20
# File 'lib/stigg/resources/v1.rb', line 18

def events
  @events
end

#featuresStigg::Resources::V1::Features (readonly)

Operations related to features



22
23
24
# File 'lib/stigg/resources/v1.rb', line 22

def features
  @features
end

#plansStigg::Resources::V1::Plans (readonly)

Operations related to plans



30
31
32
# File 'lib/stigg/resources/v1.rb', line 30

def plans
  @plans
end

#productsStigg::Resources::V1::Products (readonly)

Operations related to products



38
39
40
# File 'lib/stigg/resources/v1.rb', line 38

def products
  @products
end

#subscriptionsStigg::Resources::V1::Subscriptions (readonly)



10
11
12
# File 'lib/stigg/resources/v1.rb', line 10

def subscriptions
  @subscriptions
end

#usageStigg::Resources::V1::Usage (readonly)

Operations related to usage & metering



34
35
36
# File 'lib/stigg/resources/v1.rb', line 34

def usage
  @usage
end