@@ -21,42 +21,109 @@ class Client < Orb::Internal::Transport::BaseClient
2121 # @return [Orb::Resources::TopLevel]
2222 attr_reader :top_level
2323
24+ # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
25+ # subscribed to by a customer. Plans define the billing behavior of the
26+ # subscription. You can see more about how to configure prices in the
27+ # [Price resource](/reference/price).
2428 # @return [Orb::Resources::Beta]
2529 attr_reader :beta
2630
31+ # A coupon represents a reusable discount configuration that can be applied either
32+ # as a fixed or percentage amount to an invoice or subscription. Coupons are
33+ # activated using a redemption code, which applies the discount to a subscription
34+ # or invoice. The duration of a coupon determines how long it remains available
35+ # for use by end users.
2736 # @return [Orb::Resources::Coupons]
2837 attr_reader :coupons
2938
39+ # The [Credit Note](/invoicing/credit-notes) resource represents a credit that has
40+ # been applied to a particular invoice.
3041 # @return [Orb::Resources::CreditNotes]
3142 attr_reader :credit_notes
3243
44+ # A customer is a buyer of your products, and the other party to the billing
45+ # relationship.
46+ #
47+ # In Orb, customers are assigned system generated identifiers automatically, but
48+ # it's often desirable to have these match existing identifiers in your system. To
49+ # avoid having to denormalize Orb ID information, you can pass in an
50+ # `external_customer_id` with your own identifier. See
51+ # [Customer ID Aliases](/events-and-metrics/customer-aliases) for further
52+ # information about how these aliases work in Orb.
53+ #
54+ # In addition to having an identifier in your system, a customer may exist in a
55+ # payment provider solution like Stripe. Use the `payment_provider_id` and the
56+ # `payment_provider` enum field to express this mapping.
57+ #
58+ # A customer also has a timezone (from the standard
59+ # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
60+ # your account's timezone. See [Timezone localization](/essentials/timezones) for
61+ # information on what this timezone parameter influences within Orb.
3362 # @return [Orb::Resources::Customers]
3463 attr_reader :customers
3564
65+ # The [Event](/core-concepts#event) resource represents a usage event that has
66+ # been created for a customer. Events are the core of Orb's usage-based billing
67+ # model, and are used to calculate the usage charges for a given billing period.
3668 # @return [Orb::Resources::Events]
3769 attr_reader :events
3870
71+ # An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity,
72+ # representing the request for payment for a single subscription. This includes a
73+ # set of line items, which correspond to prices in the subscription's plan and can
74+ # represent fixed recurring fees or usage-based fees. They are generated at the
75+ # end of a billing period, or as the result of an action, such as a cancellation.
3976 # @return [Orb::Resources::InvoiceLineItems]
4077 attr_reader :invoice_line_items
4178
79+ # An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity,
80+ # representing the request for payment for a single subscription. This includes a
81+ # set of line items, which correspond to prices in the subscription's plan and can
82+ # represent fixed recurring fees or usage-based fees. They are generated at the
83+ # end of a billing period, or as the result of an action, such as a cancellation.
4284 # @return [Orb::Resources::Invoices]
4385 attr_reader :invoices
4486
87+ # The Item resource represents a sellable product or good. Items are associated
88+ # with all line items, billable metrics, and prices and are used for defining
89+ # external sync behavior for invoices and tax calculation purposes.
4590 # @return [Orb::Resources::Items]
4691 attr_reader :items
4792
93+ # The Metric resource represents a calculation of a quantity based on events.
94+ # Metrics are defined by the query that transforms raw usage events into
95+ # meaningful values for your customers.
4896 # @return [Orb::Resources::Metrics]
4997 attr_reader :metrics
5098
99+ # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
100+ # subscribed to by a customer. Plans define the billing behavior of the
101+ # subscription. You can see more about how to configure prices in the
102+ # [Price resource](/reference/price).
51103 # @return [Orb::Resources::Plans]
52104 attr_reader :plans
53105
106+ # The Price resource represents a price that can be billed on a subscription,
107+ # resulting in a charge on an invoice in the form of an invoice line item. Prices
108+ # take a quantity and determine an amount to bill.
109+ #
110+ # Orb supports a few different pricing models out of the box. Each of these models
111+ # is serialized differently in a given Price object. The model_type field
112+ # determines the key for the configuration object that is present.
113+ #
114+ # For more on the types of prices, see
115+ # [the core concepts documentation](/core-concepts#plan-and-price)
54116 # @return [Orb::Resources::Prices]
55117 attr_reader :prices
56118
57119 # @return [Orb::Resources::Subscriptions]
58120 attr_reader :subscriptions
59121
122+ # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
123+ # usage, or credit balance and trigger webhooks when a threshold is exceeded.
124+ #
125+ # Alerts created through the API can be scoped to either customers or
126+ # subscriptions.
60127 # @return [Orb::Resources::Alerts]
61128 attr_reader :alerts
62129
@@ -66,9 +133,14 @@ class Client < Orb::Internal::Transport::BaseClient
66133 # @return [Orb::Resources::SubscriptionChanges]
67134 attr_reader :subscription_changes
68135
136+ # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid
137+ # credits within Orb.
69138 # @return [Orb::Resources::CreditBlocks]
70139 attr_reader :credit_blocks
71140
141+ # The LicenseType resource represents a type of license that can be assigned to
142+ # users. License types are used during billing by grouping metrics on the
143+ # configured grouping key.
72144 # @return [Orb::Resources::LicenseTypes]
73145 attr_reader :license_types
74146
0 commit comments