Skip to content

Commit 25413e1

Browse files
chore(internal): codegen related update
1 parent 2ba6032 commit 25413e1

File tree

115 files changed

+26544
-29607
lines changed

Some content is hidden

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

115 files changed

+26544
-29607
lines changed

Gemfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ GEM
121121
prism (~> 1.4)
122122
ruby-progressbar (1.13.0)
123123
securerandom (0.4.1)
124-
sorbet (0.5.12048)
125-
sorbet-static (= 0.5.12048)
126-
sorbet-runtime (0.5.12048)
127-
sorbet-static (0.5.12048-x86_64-linux)
128-
sorbet-static-and-runtime (0.5.12048)
129-
sorbet (= 0.5.12048)
130-
sorbet-runtime (= 0.5.12048)
124+
sorbet (0.5.12053)
125+
sorbet-static (= 0.5.12053)
126+
sorbet-runtime (0.5.12053)
127+
sorbet-static (0.5.12053-x86_64-linux)
128+
sorbet-static-and-runtime (0.5.12053)
129+
sorbet (= 0.5.12053)
130+
sorbet-runtime (= 0.5.12053)
131131
spoom (1.6.1)
132132
erubi (>= 1.10.0)
133133
prism (>= 0.28.0)

lib/orb/models/coupon_create_params.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CouponCreateParams < Orb::Internal::Type::BaseModel
99

1010
# @!attribute discount
1111
#
12-
# @return [Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount]
12+
# @return [Orb::Models::CouponCreateParams::Discount::Percentage, Orb::Models::CouponCreateParams::Discount::Amount]
1313
required :discount, union: -> { Orb::Models::CouponCreateParams::Discount }
1414

1515
# @!attribute redemption_code
@@ -36,7 +36,7 @@ class CouponCreateParams < Orb::Internal::Type::BaseModel
3636
# Some parameter documentations has been truncated, see
3737
# {Orb::Models::CouponCreateParams} for more details.
3838
#
39-
# @param discount [Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount]
39+
# @param discount [Orb::Models::CouponCreateParams::Discount::Percentage, Orb::Models::CouponCreateParams::Discount::Amount]
4040
#
4141
# @param redemption_code [String] This string can be used to redeem this coupon for a given subscription.
4242
#
@@ -53,11 +53,11 @@ module Discount
5353

5454
discriminator :discount_type
5555

56-
variant :percentage, -> { Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount }
56+
variant :percentage, -> { Orb::Models::CouponCreateParams::Discount::Percentage }
5757

58-
variant :amount, -> { Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount }
58+
variant :amount, -> { Orb::Models::CouponCreateParams::Discount::Amount }
5959

60-
class NewCouponPercentageDiscount < Orb::Internal::Type::BaseModel
60+
class Percentage < Orb::Internal::Type::BaseModel
6161
# @!attribute discount_type
6262
#
6363
# @return [Symbol, :percentage]
@@ -73,7 +73,7 @@ class NewCouponPercentageDiscount < Orb::Internal::Type::BaseModel
7373
# @param discount_type [Symbol, :percentage]
7474
end
7575

76-
class NewCouponAmountDiscount < Orb::Internal::Type::BaseModel
76+
class Amount < Orb::Internal::Type::BaseModel
7777
# @!attribute amount_discount
7878
#
7979
# @return [String]
@@ -90,7 +90,7 @@ class NewCouponAmountDiscount < Orb::Internal::Type::BaseModel
9090
end
9191

9292
# @!method self.variants
93-
# @return [Array(Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount)]
93+
# @return [Array(Orb::Models::CouponCreateParams::Discount::Percentage, Orb::Models::CouponCreateParams::Discount::Amount)]
9494
end
9595
end
9696
end

lib/orb/models/customer_create_params.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel
111111

112112
# @!attribute tax_configuration
113113
#
114-
# @return [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration, nil]
114+
# @return [Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar, nil]
115115
optional :tax_configuration, union: -> { Orb::Models::CustomerCreateParams::TaxConfiguration }, nil?: true
116116

117117
# @!attribute tax_id
@@ -274,7 +274,7 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel
274274
#
275275
# @param shipping_address [Orb::Models::CustomerCreateParams::ShippingAddress, nil]
276276
#
277-
# @param tax_configuration [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration, nil]
277+
# @param tax_configuration [Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar, nil]
278278
#
279279
# @param tax_id [Orb::Models::CustomerCreateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
280280
# ...
@@ -457,11 +457,11 @@ module TaxConfiguration
457457

458458
discriminator :tax_provider
459459

460-
variant :avalara, -> { Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration }
460+
variant :avalara, -> { Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara }
461461

462-
variant :taxjar, -> { Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration }
462+
variant :taxjar, -> { Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar }
463463

464-
class NewAvalaraTaxConfiguration < Orb::Internal::Type::BaseModel
464+
class Avalara < Orb::Internal::Type::BaseModel
465465
# @!attribute tax_exempt
466466
#
467467
# @return [Boolean]
@@ -483,7 +483,7 @@ class NewAvalaraTaxConfiguration < Orb::Internal::Type::BaseModel
483483
# @param tax_provider [Symbol, :avalara]
484484
end
485485

486-
class NewTaxJarConfiguration < Orb::Internal::Type::BaseModel
486+
class Taxjar < Orb::Internal::Type::BaseModel
487487
# @!attribute tax_exempt
488488
#
489489
# @return [Boolean]
@@ -500,7 +500,7 @@ class NewTaxJarConfiguration < Orb::Internal::Type::BaseModel
500500
end
501501

502502
# @!method self.variants
503-
# @return [Array(Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration)]
503+
# @return [Array(Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar)]
504504
end
505505

506506
class TaxID < Orb::Internal::Type::BaseModel

lib/orb/models/customer_update_by_external_id_params.rb

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel
118118

119119
# @!attribute tax_configuration
120120
#
121-
# @return [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration, nil]
121+
# @return [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, nil]
122122
optional :tax_configuration,
123123
union: -> { Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration },
124124
nil?: true
@@ -274,7 +274,7 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel
274274
#
275275
# @param shipping_address [Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, nil]
276276
#
277-
# @param tax_configuration [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration, nil]
277+
# @param tax_configuration [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, nil]
278278
#
279279
# @param tax_id [Orb::Models::CustomerUpdateByExternalIDParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
280280
# ...
@@ -458,13 +458,11 @@ module TaxConfiguration
458458

459459
discriminator :tax_provider
460460

461-
variant :avalara,
462-
-> { Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration }
461+
variant :avalara, -> { Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara }
463462

464-
variant :taxjar,
465-
-> { Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration }
463+
variant :taxjar, -> { Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar }
466464

467-
class NewAvalaraTaxConfiguration < Orb::Internal::Type::BaseModel
465+
class Avalara < Orb::Internal::Type::BaseModel
468466
# @!attribute tax_exempt
469467
#
470468
# @return [Boolean]
@@ -486,7 +484,7 @@ class NewAvalaraTaxConfiguration < Orb::Internal::Type::BaseModel
486484
# @param tax_provider [Symbol, :avalara]
487485
end
488486

489-
class NewTaxJarConfiguration < Orb::Internal::Type::BaseModel
487+
class Taxjar < Orb::Internal::Type::BaseModel
490488
# @!attribute tax_exempt
491489
#
492490
# @return [Boolean]
@@ -503,7 +501,7 @@ class NewTaxJarConfiguration < Orb::Internal::Type::BaseModel
503501
end
504502

505503
# @!method self.variants
506-
# @return [Array(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration)]
504+
# @return [Array(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar)]
507505
end
508506

509507
class TaxID < Orb::Internal::Type::BaseModel

lib/orb/models/customer_update_params.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel
112112

113113
# @!attribute tax_configuration
114114
#
115-
# @return [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration, nil]
115+
# @return [Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar, nil]
116116
optional :tax_configuration, union: -> { Orb::Models::CustomerUpdateParams::TaxConfiguration }, nil?: true
117117

118118
# @!attribute tax_id
@@ -266,7 +266,7 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel
266266
#
267267
# @param shipping_address [Orb::Models::CustomerUpdateParams::ShippingAddress, nil]
268268
#
269-
# @param tax_configuration [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration, nil]
269+
# @param tax_configuration [Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar, nil]
270270
#
271271
# @param tax_id [Orb::Models::CustomerUpdateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
272272
# ...
@@ -450,11 +450,11 @@ module TaxConfiguration
450450

451451
discriminator :tax_provider
452452

453-
variant :avalara, -> { Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration }
453+
variant :avalara, -> { Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara }
454454

455-
variant :taxjar, -> { Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration }
455+
variant :taxjar, -> { Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar }
456456

457-
class NewAvalaraTaxConfiguration < Orb::Internal::Type::BaseModel
457+
class Avalara < Orb::Internal::Type::BaseModel
458458
# @!attribute tax_exempt
459459
#
460460
# @return [Boolean]
@@ -476,7 +476,7 @@ class NewAvalaraTaxConfiguration < Orb::Internal::Type::BaseModel
476476
# @param tax_provider [Symbol, :avalara]
477477
end
478478

479-
class NewTaxJarConfiguration < Orb::Internal::Type::BaseModel
479+
class Taxjar < Orb::Internal::Type::BaseModel
480480
# @!attribute tax_exempt
481481
#
482482
# @return [Boolean]
@@ -493,7 +493,7 @@ class NewTaxJarConfiguration < Orb::Internal::Type::BaseModel
493493
end
494494

495495
# @!method self.variants
496-
# @return [Array(Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration)]
496+
# @return [Array(Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar)]
497497
end
498498

499499
class TaxID < Orb::Internal::Type::BaseModel

lib/orb/models/customers/cost_list_by_external_id_response.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class PerPriceCost < Orb::Internal::Type::BaseModel
5858
# @!attribute price
5959
# The price object
6060
#
61-
# @return [Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, Orb::Models::Price::TieredBpsPrice, Orb::Models::Price::BpsPrice, Orb::Models::Price::BulkBpsPrice, Orb::Models::Price::BulkPrice, Orb::Models::Price::ThresholdTotalAmountPrice, Orb::Models::Price::TieredPackagePrice, Orb::Models::Price::GroupedTieredPrice, Orb::Models::Price::TieredWithMinimumPrice, Orb::Models::Price::TieredPackageWithMinimumPrice, Orb::Models::Price::PackageWithAllocationPrice, Orb::Models::Price::UnitWithPercentPrice, Orb::Models::Price::MatrixWithAllocationPrice, Orb::Models::Price::TieredWithProrationPrice, Orb::Models::Price::UnitWithProrationPrice, Orb::Models::Price::GroupedAllocationPrice, Orb::Models::Price::GroupedWithProratedMinimumPrice, Orb::Models::Price::GroupedWithMeteredMinimumPrice, Orb::Models::Price::MatrixWithDisplayNamePrice, Orb::Models::Price::BulkWithProrationPrice, Orb::Models::Price::GroupedTieredPackagePrice, Orb::Models::Price::MaxGroupTieredPackagePrice, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice]
61+
# @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk]
6262
required :price, union: -> { Orb::Models::Price }
6363

6464
# @!attribute price_id
@@ -86,7 +86,7 @@ class PerPriceCost < Orb::Internal::Type::BaseModel
8686
optional :quantity, Float, nil?: true
8787

8888
# @!method initialize(price:, price_id:, subtotal:, total:, quantity: nil)
89-
# @param price [Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, Orb::Models::Price::TieredBpsPrice, Orb::Models::Price::BpsPrice, Orb::Models::Price::BulkBpsPrice, Orb::Models::Price::BulkPrice, Orb::Models::Price::ThresholdTotalAmountPrice, Orb::Models::Price::TieredPackagePrice, Orb::Models::Price::GroupedTieredPrice, Orb::Models::Price::TieredWithMinimumPrice, Orb::Models::Price::TieredPackageWithMinimumPrice, Orb::Models::Price::PackageWithAllocationPrice, Orb::Models::Price::UnitWithPercentPrice, Orb::Models::Price::MatrixWithAllocationPrice, Orb::Models::Price::TieredWithProrationPrice, Orb::Models::Price::UnitWithProrationPrice, Orb::Models::Price::GroupedAllocationPrice, Orb::Models::Price::GroupedWithProratedMinimumPrice, Orb::Models::Price::GroupedWithMeteredMinimumPrice, Orb::Models::Price::MatrixWithDisplayNamePrice, Orb::Models::Price::BulkWithProrationPrice, Orb::Models::Price::GroupedTieredPackagePrice, Orb::Models::Price::MaxGroupTieredPackagePrice, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice] The price object
89+
# @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The price object
9090
#
9191
# @param price_id [String] The price the cost is associated with
9292
#

0 commit comments

Comments
 (0)