Skip to content

Commit fd4f82d

Browse files
feat(api): api update
1 parent 4b838cf commit fd4f82d

22 files changed

Lines changed: 128 additions & 7 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 139
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-563cf1475c193333d5f8cab934fbf844e439db6218c5b9eccb089b5c1d797b4b.yml
3-
openapi_spec_hash: f2b06aac248aecb248e975af25f3911c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-0186c0310e2a9f40302cc35f4248fca335b7ec8069502f684ba6f2fa37793033.yml
3+
openapi_spec_hash: 4fb1d2837ad3794864a7d59d393d6ff6
44
config_hash: 3279841440b02d4e8303c961d6983492

lib/orb/models/item.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ module ExternalConnectionName
9999
AVALARA = :avalara
100100
ANROK = :anrok
101101
NUMERAL = :numeral
102+
STRIPE_TAX = :stripe_tax
102103

103104
# @!method self.values
104105
# @return [Array<Symbol>]

lib/orb/models/item_update_params.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ module ExternalConnectionName
7575
AVALARA = :avalara
7676
ANROK = :anrok
7777
NUMERAL = :numeral
78+
STRIPE_TAX = :stripe_tax
7879

7980
# @!method self.values
8081
# @return [Array<Symbol>]

lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
215215
# @return [String]
216216
required :unit_price, String
217217

218+
# @!attribute grouping_key
219+
# The property used to group this price
220+
#
221+
# @return [String, nil]
222+
optional :grouping_key, String, nil?: true
223+
218224
# @!attribute prorate
219225
# If true, the unit price will be prorated to the billing period
220226
#
@@ -227,7 +233,7 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
227233
# @return [String, nil]
228234
optional :second_dimension, String, nil?: true
229235

230-
# @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, prorate: nil, second_dimension: nil)
236+
# @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, grouping_key: nil, prorate: nil, second_dimension: nil)
231237
# Configuration for scalable_matrix_with_unit_pricing pricing
232238
#
233239
# @param first_dimension [String] Used to determine the unit rate
@@ -236,6 +242,8 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
236242
#
237243
# @param unit_price [String] The final unit price to rate against the output of the matrix
238244
#
245+
# @param grouping_key [String, nil] The property used to group this price
246+
#
239247
# @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period
240248
#
241249
# @param second_dimension [String, nil] Used to determine the unit rate (optional)

lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,12 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
221221
# @return [String]
222222
required :unit_price, String
223223

224+
# @!attribute grouping_key
225+
# The property used to group this price
226+
#
227+
# @return [String, nil]
228+
optional :grouping_key, String, nil?: true
229+
224230
# @!attribute prorate
225231
# If true, the unit price will be prorated to the billing period
226232
#
@@ -233,7 +239,7 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
233239
# @return [String, nil]
234240
optional :second_dimension, String, nil?: true
235241

236-
# @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, prorate: nil, second_dimension: nil)
242+
# @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, grouping_key: nil, prorate: nil, second_dimension: nil)
237243
# Configuration for scalable_matrix_with_unit_pricing pricing
238244
#
239245
# @param first_dimension [String] Used to determine the unit rate
@@ -242,6 +248,8 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
242248
#
243249
# @param unit_price [String] The final unit price to rate against the output of the matrix
244250
#
251+
# @param grouping_key [String, nil] The property used to group this price
252+
#
245253
# @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period
246254
#
247255
# @param second_dimension [String, nil] Used to determine the unit rate (optional)

lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,12 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
226226
# @return [String]
227227
required :unit_price, String
228228

229+
# @!attribute grouping_key
230+
# The property used to group this price
231+
#
232+
# @return [String, nil]
233+
optional :grouping_key, String, nil?: true
234+
229235
# @!attribute prorate
230236
# If true, the unit price will be prorated to the billing period
231237
#
@@ -238,7 +244,7 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
238244
# @return [String, nil]
239245
optional :second_dimension, String, nil?: true
240246

241-
# @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, prorate: nil, second_dimension: nil)
247+
# @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, grouping_key: nil, prorate: nil, second_dimension: nil)
242248
# Configuration for scalable_matrix_with_unit_pricing pricing
243249
#
244250
# @param first_dimension [String] Used to determine the unit rate
@@ -247,6 +253,8 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
247253
#
248254
# @param unit_price [String] The final unit price to rate against the output of the matrix
249255
#
256+
# @param grouping_key [String, nil] The property used to group this price
257+
#
250258
# @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period
251259
#
252260
# @param second_dimension [String, nil] Used to determine the unit rate (optional)

lib/orb/models/price.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9916,6 +9916,12 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
99169916
# @return [String]
99179917
required :unit_price, String
99189918

9919+
# @!attribute grouping_key
9920+
# The property used to group this price
9921+
#
9922+
# @return [String, nil]
9923+
optional :grouping_key, String, nil?: true
9924+
99199925
# @!attribute prorate
99209926
# If true, the unit price will be prorated to the billing period
99219927
#
@@ -9928,7 +9934,7 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
99289934
# @return [String, nil]
99299935
optional :second_dimension, String, nil?: true
99309936

9931-
# @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, prorate: nil, second_dimension: nil)
9937+
# @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, grouping_key: nil, prorate: nil, second_dimension: nil)
99329938
# Configuration for scalable_matrix_with_unit_pricing pricing
99339939
#
99349940
# @param first_dimension [String] Used to determine the unit rate
@@ -9937,6 +9943,8 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
99379943
#
99389944
# @param unit_price [String] The final unit price to rate against the output of the matrix
99399945
#
9946+
# @param grouping_key [String, nil] The property used to group this price
9947+
#
99409948
# @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period
99419949
#
99429950
# @param second_dimension [String, nil] Used to determine the unit rate (optional)

lib/orb/models/price_create_params.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,12 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
12501250
# @return [String]
12511251
required :unit_price, String
12521252

1253+
# @!attribute grouping_key
1254+
# The property used to group this price
1255+
#
1256+
# @return [String, nil]
1257+
optional :grouping_key, String, nil?: true
1258+
12531259
# @!attribute prorate
12541260
# If true, the unit price will be prorated to the billing period
12551261
#
@@ -1262,7 +1268,7 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
12621268
# @return [String, nil]
12631269
optional :second_dimension, String, nil?: true
12641270

1265-
# @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, prorate: nil, second_dimension: nil)
1271+
# @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, grouping_key: nil, prorate: nil, second_dimension: nil)
12661272
# Configuration for scalable_matrix_with_unit_pricing pricing
12671273
#
12681274
# @param first_dimension [String] Used to determine the unit rate
@@ -1271,6 +1277,8 @@ class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel
12711277
#
12721278
# @param unit_price [String] The final unit price to rate against the output of the matrix
12731279
#
1280+
# @param grouping_key [String, nil] The property used to group this price
1281+
#
12741282
# @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period
12751283
#
12761284
# @param second_dimension [String, nil] Used to determine the unit rate (optional)

rbi/orb/models/item.rbi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ module Orb
181181
:numeral,
182182
Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol
183183
)
184+
STRIPE_TAX =
185+
T.let(
186+
:stripe_tax,
187+
Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol
188+
)
184189

185190
sig do
186191
override.returns(

rbi/orb/models/item_update_params.rbi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ module Orb
162162
:numeral,
163163
Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol
164164
)
165+
STRIPE_TAX =
166+
T.let(
167+
:stripe_tax,
168+
Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol
169+
)
165170

166171
sig do
167172
override.returns(

0 commit comments

Comments
 (0)