Skip to content

Commit 7946e79

Browse files
chore(internal): codegen related update (#179)
1 parent adbaaa7 commit 7946e79

161 files changed

Lines changed: 7833 additions & 11760 deletions

File tree

Some content is hidden

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

lib/orb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# We already ship the preferred sorbet manifests in the package itself.
44
# `tapioca` currently does not offer us a way to opt out of unnecessary compilation.
5-
if defined?(:Tapioca) && caller_locations.any? { _1.path.end_with?("tapioca/cli.rb") }
5+
if Object.const_defined?(:Tapioca) && caller_locations.any? { _1.path.end_with?("tapioca/cli.rb") }
66
Warning.warn(
77
<<~WARN
88
\n

lib/orb/models/alert.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,9 @@ module Type
209209

210210
finalize!
211211

212-
class << self
213-
# @!parse
214-
# # @return [Array<Symbol>]
215-
# def values; end
216-
end
212+
# @!parse
213+
# # @return [Array<Symbol>]
214+
# def self.values; end
217215
end
218216
end
219217
end

lib/orb/models/alert_create_for_customer_params.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@ module Type
4747

4848
finalize!
4949

50-
class << self
51-
# @!parse
52-
# # @return [Array<Symbol>]
53-
# def values; end
54-
end
50+
# @!parse
51+
# # @return [Array<Symbol>]
52+
# def self.values; end
5553
end
5654

5755
class Threshold < Orb::BaseModel

lib/orb/models/alert_create_for_external_customer_params.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@ module Type
4747

4848
finalize!
4949

50-
class << self
51-
# @!parse
52-
# # @return [Array<Symbol>]
53-
# def values; end
54-
end
50+
# @!parse
51+
# # @return [Array<Symbol>]
52+
# def self.values; end
5553
end
5654

5755
class Threshold < Orb::BaseModel

lib/orb/models/alert_create_for_subscription_params.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@ module Type
6464

6565
finalize!
6666

67-
class << self
68-
# @!parse
69-
# # @return [Array<Symbol>]
70-
# def values; end
71-
end
67+
# @!parse
68+
# # @return [Array<Symbol>]
69+
# def self.values; end
7270
end
7371
end
7472
end

lib/orb/models/amount_discount.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,9 @@ module DiscountType
4343

4444
finalize!
4545

46-
class << self
47-
# @!parse
48-
# # @return [Array<Symbol>]
49-
# def values; end
50-
end
46+
# @!parse
47+
# # @return [Array<Symbol>]
48+
# def self.values; end
5149
end
5250
end
5351
end

lib/orb/models/billable_metric.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@ module Status
6565

6666
finalize!
6767

68-
class << self
69-
# @!parse
70-
# # @return [Array<Symbol>]
71-
# def values; end
72-
end
68+
# @!parse
69+
# # @return [Array<Symbol>]
70+
# def self.values; end
7371
end
7472
end
7573
end

lib/orb/models/billing_cycle_relative_date.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ module BillingCycleRelativeDate
1010

1111
finalize!
1212

13-
class << self
14-
# @!parse
15-
# # @return [Array<Symbol>]
16-
# def values; end
17-
end
13+
# @!parse
14+
# # @return [Array<Symbol>]
15+
# def self.values; end
1816
end
1917
end
2018
end

lib/orb/models/coupon.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ module Discount
7676
variant :amount, -> { Orb::Models::AmountDiscount }
7777

7878
# @!parse
79-
# class << self
80-
# # @return [Array(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)]
81-
# def variants; end
82-
# end
79+
# # @return [Array(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)]
80+
# def self.variants; end
8381
end
8482
end
8583
end

lib/orb/models/coupon_create_params.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,8 @@ class NewCouponAmountDiscount < Orb::BaseModel
9393
end
9494

9595
# @!parse
96-
# class << self
97-
# # @return [Array(Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount)]
98-
# def variants; end
99-
# end
96+
# # @return [Array(Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount)]
97+
# def self.variants; end
10098
end
10199
end
102100
end

0 commit comments

Comments
 (0)