Skip to content

Commit 0fb86bd

Browse files
chore: show truncated parameter docs in yard
1 parent ca1c497 commit 0fb86bd

File tree

276 files changed

+30211
-7266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+30211
-7266
lines changed

lib/orb/models/alert.rb

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,35 @@ class Alert < Orb::Internal::Type::BaseModel
6666
required :type, enum: -> { Orb::Models::Alert::Type }
6767

6868
# @!method initialize(id:, created_at:, currency:, customer:, enabled:, metric:, plan:, subscription:, thresholds:, type:)
69+
# Some parameter documentations has been truncated, see {Orb::Models::Alert} for
70+
# more details.
71+
#
6972
# [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
7073
# usage, or credit balance and trigger webhooks when a threshold is exceeded.
7174
#
7275
# Alerts created through the API can be scoped to either customers or
7376
# subscriptions.
7477
#
75-
# @param id [String]
76-
# @param created_at [Time]
77-
# @param currency [String, nil]
78-
# @param customer [Orb::Models::Alert::Customer, nil]
79-
# @param enabled [Boolean]
80-
# @param metric [Orb::Models::Alert::Metric, nil]
81-
# @param plan [Orb::Models::Alert::Plan, nil]
82-
# @param subscription [Orb::Models::Alert::Subscription, nil]
83-
# @param thresholds [Array<Orb::Models::Alert::Threshold>, nil]
84-
# @param type [Symbol, Orb::Models::Alert::Type]
78+
# @param id [String] Also referred to as alert_id in this documentation.
79+
#
80+
# @param created_at [Time] The creation time of the resource in Orb.
81+
#
82+
# @param currency [String, nil] The name of the currency the credit balance or invoice cost is denominated in.
83+
#
84+
# @param customer [Orb::Models::Alert::Customer, nil] The customer the alert applies to.
85+
#
86+
# @param enabled [Boolean] Whether the alert is enabled or disabled.
87+
#
88+
# @param metric [Orb::Models::Alert::Metric, nil] The metric the alert applies to.
89+
#
90+
# @param plan [Orb::Models::Alert::Plan, nil] The plan the alert applies to.
91+
#
92+
# @param subscription [Orb::Models::Alert::Subscription, nil] The subscription the alert applies to.
93+
#
94+
# @param thresholds [Array<Orb::Models::Alert::Threshold>, nil] The thresholds that define the conditions under which the alert will be triggere
95+
# ...
96+
#
97+
# @param type [Symbol, Orb::Models::Alert::Type] The type of alert. This must be a valid alert type.
8598

8699
# @see Orb::Models::Alert#customer
87100
class Customer < Orb::Internal::Type::BaseModel
@@ -141,11 +154,18 @@ class Plan < Orb::Internal::Type::BaseModel
141154
required :plan_version, String
142155

143156
# @!method initialize(id:, external_plan_id:, name:, plan_version:)
157+
# Some parameter documentations has been truncated, see {Orb::Models::Alert::Plan}
158+
# for more details.
159+
#
144160
# The plan the alert applies to.
145161
#
146162
# @param id [String, nil]
147-
# @param external_plan_id [String, nil]
163+
#
164+
# @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a
165+
# ...
166+
#
148167
# @param name [String, nil]
168+
#
149169
# @param plan_version [String]
150170
end
151171

@@ -172,10 +192,14 @@ class Threshold < Orb::Internal::Type::BaseModel
172192
required :value, Float
173193

174194
# @!method initialize(value:)
195+
# Some parameter documentations has been truncated, see
196+
# {Orb::Models::Alert::Threshold} for more details.
197+
#
175198
# Thresholds are used to define the conditions under which an alert will be
176199
# triggered.
177200
#
178-
# @param value [Float]
201+
# @param value [Float] The value at which an alert will fire. For credit balance alerts, the alert will
202+
# ...
179203
end
180204

181205
# The type of alert. This must be a valid alert type.

lib/orb/models/alert_create_for_customer_params.rb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ class AlertCreateForCustomerParams < Orb::Internal::Type::BaseModel
2828
nil?: true
2929

3030
# @!method initialize(currency:, type:, thresholds: nil, request_options: {})
31-
# @param currency [String]
32-
# @param type [Symbol, Orb::Models::AlertCreateForCustomerParams::Type]
33-
# @param thresholds [Array<Orb::Models::AlertCreateForCustomerParams::Threshold>, nil]
31+
# @param currency [String] The case sensitive currency or custom pricing unit to use for this alert.
32+
#
33+
# @param type [Symbol, Orb::Models::AlertCreateForCustomerParams::Type] The type of alert to create. This must be a valid alert type.
34+
#
35+
# @param thresholds [Array<Orb::Models::AlertCreateForCustomerParams::Threshold>, nil] The thresholds that define the values at which the alert will be triggered.
36+
#
3437
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
3538

3639
# The type of alert to create. This must be a valid alert type.
@@ -55,10 +58,14 @@ class Threshold < Orb::Internal::Type::BaseModel
5558
required :value, Float
5659

5760
# @!method initialize(value:)
61+
# Some parameter documentations has been truncated, see
62+
# {Orb::Models::AlertCreateForCustomerParams::Threshold} for more details.
63+
#
5864
# Thresholds are used to define the conditions under which an alert will be
5965
# triggered.
6066
#
61-
# @param value [Float]
67+
# @param value [Float] The value at which an alert will fire. For credit balance alerts, the alert will
68+
# ...
6269
end
6370
end
6471
end

lib/orb/models/alert_create_for_external_customer_params.rb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ class AlertCreateForExternalCustomerParams < Orb::Internal::Type::BaseModel
2828
nil?: true
2929

3030
# @!method initialize(currency:, type:, thresholds: nil, request_options: {})
31-
# @param currency [String]
32-
# @param type [Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type]
33-
# @param thresholds [Array<Orb::Models::AlertCreateForExternalCustomerParams::Threshold>, nil]
31+
# @param currency [String] The case sensitive currency or custom pricing unit to use for this alert.
32+
#
33+
# @param type [Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type] The type of alert to create. This must be a valid alert type.
34+
#
35+
# @param thresholds [Array<Orb::Models::AlertCreateForExternalCustomerParams::Threshold>, nil] The thresholds that define the values at which the alert will be triggered.
36+
#
3437
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
3538

3639
# The type of alert to create. This must be a valid alert type.
@@ -55,10 +58,14 @@ class Threshold < Orb::Internal::Type::BaseModel
5558
required :value, Float
5659

5760
# @!method initialize(value:)
61+
# Some parameter documentations has been truncated, see
62+
# {Orb::Models::AlertCreateForExternalCustomerParams::Threshold} for more details.
63+
#
5864
# Thresholds are used to define the conditions under which an alert will be
5965
# triggered.
6066
#
61-
# @param value [Float]
67+
# @param value [Float] The value at which an alert will fire. For credit balance alerts, the alert will
68+
# ...
6269
end
6370
end
6471
end

lib/orb/models/alert_create_for_subscription_params.rb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ class AlertCreateForSubscriptionParams < Orb::Internal::Type::BaseModel
2727
optional :metric_id, String, nil?: true
2828

2929
# @!method initialize(thresholds:, type:, metric_id: nil, request_options: {})
30-
# @param thresholds [Array<Orb::Models::AlertCreateForSubscriptionParams::Threshold>]
31-
# @param type [Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type]
32-
# @param metric_id [String, nil]
30+
# @param thresholds [Array<Orb::Models::AlertCreateForSubscriptionParams::Threshold>] The thresholds that define the values at which the alert will be triggered.
31+
#
32+
# @param type [Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type] The type of alert to create. This must be a valid alert type.
33+
#
34+
# @param metric_id [String, nil] The metric to track usage for.
35+
#
3336
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
3437

3538
class Threshold < Orb::Internal::Type::BaseModel
@@ -42,10 +45,14 @@ class Threshold < Orb::Internal::Type::BaseModel
4245
required :value, Float
4346

4447
# @!method initialize(value:)
48+
# Some parameter documentations has been truncated, see
49+
# {Orb::Models::AlertCreateForSubscriptionParams::Threshold} for more details.
50+
#
4551
# Thresholds are used to define the conditions under which an alert will be
4652
# triggered.
4753
#
48-
# @param value [Float]
54+
# @param value [Float] The value at which an alert will fire. For credit balance alerts, the alert will
55+
# ...
4956
end
5057

5158
# The type of alert to create. This must be a valid alert type.

lib/orb/models/alert_disable_params.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class AlertDisableParams < Orb::Internal::Type::BaseModel
1414
optional :subscription_id, String, nil?: true
1515

1616
# @!method initialize(subscription_id: nil, request_options: {})
17-
# @param subscription_id [String, nil]
17+
# @param subscription_id [String, nil] Used to update the status of a plan alert scoped to this subscription_id
18+
#
1819
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
1920
end
2021
end

lib/orb/models/alert_enable_params.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class AlertEnableParams < Orb::Internal::Type::BaseModel
1414
optional :subscription_id, String, nil?: true
1515

1616
# @!method initialize(subscription_id: nil, request_options: {})
17-
# @param subscription_id [String, nil]
17+
# @param subscription_id [String, nil] Used to update the status of a plan alert scoped to this subscription_id
18+
#
1819
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
1920
end
2021
end

lib/orb/models/alert_list_params.rb

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,28 @@ class AlertListParams < Orb::Internal::Type::BaseModel
5959
optional :subscription_id, String, nil?: true
6060

6161
# @!method initialize(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, customer_id: nil, external_customer_id: nil, limit: nil, subscription_id: nil, request_options: {})
62+
# Some parameter documentations has been truncated, see
63+
# {Orb::Models::AlertListParams} for more details.
64+
#
6265
# @param created_at_gt [Time, nil]
66+
#
6367
# @param created_at_gte [Time, nil]
68+
#
6469
# @param created_at_lt [Time, nil]
70+
#
6571
# @param created_at_lte [Time, nil]
66-
# @param cursor [String, nil]
67-
# @param customer_id [String, nil]
68-
# @param external_customer_id [String, nil]
69-
# @param limit [Integer]
70-
# @param subscription_id [String, nil]
72+
#
73+
# @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
74+
# ...
75+
#
76+
# @param customer_id [String, nil] Fetch alerts scoped to this customer_id
77+
#
78+
# @param external_customer_id [String, nil] Fetch alerts scoped to this external_customer_id
79+
#
80+
# @param limit [Integer] The number of items to fetch. Defaults to 20.
81+
#
82+
# @param subscription_id [String, nil] Fetch alerts scoped to this subscription_id
83+
#
7184
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
7285
end
7386
end

lib/orb/models/alert_update_params.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class AlertUpdateParams < Orb::Internal::Type::BaseModel
1414
required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Models::AlertUpdateParams::Threshold] }
1515

1616
# @!method initialize(thresholds:, request_options: {})
17-
# @param thresholds [Array<Orb::Models::AlertUpdateParams::Threshold>]
17+
# @param thresholds [Array<Orb::Models::AlertUpdateParams::Threshold>] The thresholds that define the values at which the alert will be triggered.
18+
#
1819
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
1920

2021
class Threshold < Orb::Internal::Type::BaseModel
@@ -27,10 +28,14 @@ class Threshold < Orb::Internal::Type::BaseModel
2728
required :value, Float
2829

2930
# @!method initialize(value:)
31+
# Some parameter documentations has been truncated, see
32+
# {Orb::Models::AlertUpdateParams::Threshold} for more details.
33+
#
3034
# Thresholds are used to define the conditions under which an alert will be
3135
# triggered.
3236
#
33-
# @param value [Float]
37+
# @param value [Float] The value at which an alert will fire. For credit balance alerts, the alert will
38+
# ...
3439
end
3540
end
3641
end

lib/orb/models/amount_discount.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,16 @@ class AmountDiscount < Orb::Internal::Type::BaseModel
2727
optional :reason, String, nil?: true
2828

2929
# @!method initialize(amount_discount:, applies_to_price_ids:, discount_type:, reason: nil)
30-
# @param amount_discount [String]
31-
# @param applies_to_price_ids [Array<String>]
30+
# Some parameter documentations has been truncated, see
31+
# {Orb::Models::AmountDiscount} for more details.
32+
#
33+
# @param amount_discount [String] Only available if discount_type is `amount`.
34+
#
35+
# @param applies_to_price_ids [Array<String>] List of price_ids that this discount applies to. For plan/plan phase discounts,
36+
# ...
37+
#
3238
# @param discount_type [Symbol, Orb::Models::AmountDiscount::DiscountType]
39+
#
3340
# @param reason [String, nil]
3441

3542
# @see Orb::Models::AmountDiscount#discount_type

lib/orb/models/billable_metric.rb

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,25 @@ class BillableMetric < Orb::Internal::Type::BaseModel
4242
required :status, enum: -> { Orb::Models::BillableMetric::Status }
4343

4444
# @!method initialize(id:, description:, item:, metadata:, name:, status:)
45+
# Some parameter documentations has been truncated, see
46+
# {Orb::Models::BillableMetric} for more details.
47+
#
4548
# The Metric resource represents a calculation of a quantity based on events.
4649
# Metrics are defined by the query that transforms raw usage events into
4750
# meaningful values for your customers.
4851
#
4952
# @param id [String]
53+
#
5054
# @param description [String, nil]
51-
# @param item [Orb::Models::Item]
52-
# @param metadata [Hash{Symbol=>String}]
55+
#
56+
# @param item [Orb::Models::Item] The Item resource represents a sellable product or good. Items are associated wi
57+
# ...
58+
#
59+
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
60+
# ...
61+
#
5362
# @param name [String]
63+
#
5464
# @param status [Symbol, Orb::Models::BillableMetric::Status]
5565

5666
# @see Orb::Models::BillableMetric#status

0 commit comments

Comments
 (0)