Skip to content

Commit f8b2792

Browse files
feat(api): api update
1 parent f8c9f2c commit f8b2792

File tree

4 files changed

+30
-9
lines changed

4 files changed

+30
-9
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b330498c2bfb80605f4c406e8b228c0a4ece85247b21f62f93273a00abb53d35.yml
3-
openapi_spec_hash: 16a82d0eb23b68218d584e385bee43da
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-26020bd285825dac04bf642a414ea07c786fc6e42ee6bbcf795e11f8db426519.yml
3+
openapi_spec_hash: 897fedec83f0960539b3aa4ec0e3308d
44
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2

lib/orb/models/matrix_sub_line_item.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ class MatrixSubLineItem < Orb::Internal::Type::BaseModel
3434
# @return [Symbol, Orb::Models::MatrixSubLineItem::Type]
3535
required :type, enum: -> { Orb::MatrixSubLineItem::Type }
3636

37-
# @!method initialize(amount:, grouping:, matrix_config:, name:, quantity:, type:)
37+
# @!attribute scaled_quantity
38+
# The scaled quantity for this line item for specific pricing structures
39+
#
40+
# @return [Float, nil]
41+
optional :scaled_quantity, Float, nil?: true
42+
43+
# @!method initialize(amount:, grouping:, matrix_config:, name:, quantity:, type:, scaled_quantity: nil)
3844
# @param amount [String] The total amount for this sub line item.
3945
#
4046
# @param grouping [Orb::Models::SubLineItemGrouping, nil]
@@ -46,6 +52,8 @@ class MatrixSubLineItem < Orb::Internal::Type::BaseModel
4652
# @param quantity [Float]
4753
#
4854
# @param type [Symbol, Orb::Models::MatrixSubLineItem::Type]
55+
#
56+
# @param scaled_quantity [Float, nil] The scaled quantity for this line item for specific pricing structures
4957

5058
# @see Orb::Models::MatrixSubLineItem#type
5159
module Type

rbi/orb/models/matrix_sub_line_item.rbi

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,19 @@ module Orb
3131
sig { returns(Orb::MatrixSubLineItem::Type::TaggedSymbol) }
3232
attr_accessor :type
3333

34+
# The scaled quantity for this line item for specific pricing structures
35+
sig { returns(T.nilable(Float)) }
36+
attr_accessor :scaled_quantity
37+
3438
sig do
3539
params(
3640
amount: String,
3741
grouping: T.nilable(Orb::SubLineItemGrouping::OrHash),
3842
matrix_config: Orb::SubLineItemMatrixConfig::OrHash,
3943
name: String,
4044
quantity: Float,
41-
type: Orb::MatrixSubLineItem::Type::OrSymbol
45+
type: Orb::MatrixSubLineItem::Type::OrSymbol,
46+
scaled_quantity: T.nilable(Float)
4247
).returns(T.attached_class)
4348
end
4449
def self.new(
@@ -48,7 +53,9 @@ module Orb
4853
matrix_config:,
4954
name:,
5055
quantity:,
51-
type:
56+
type:,
57+
# The scaled quantity for this line item for specific pricing structures
58+
scaled_quantity: nil
5259
)
5360
end
5461

@@ -60,7 +67,8 @@ module Orb
6067
matrix_config: Orb::SubLineItemMatrixConfig,
6168
name: String,
6269
quantity: Float,
63-
type: Orb::MatrixSubLineItem::Type::TaggedSymbol
70+
type: Orb::MatrixSubLineItem::Type::TaggedSymbol,
71+
scaled_quantity: T.nilable(Float)
6472
}
6573
)
6674
end

sig/orb/models/matrix_sub_line_item.rbs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ module Orb
77
matrix_config: Orb::SubLineItemMatrixConfig,
88
name: String,
99
quantity: Float,
10-
type: Orb::Models::MatrixSubLineItem::type_
10+
type: Orb::Models::MatrixSubLineItem::type_,
11+
scaled_quantity: Float?
1112
}
1213

1314
class MatrixSubLineItem < Orb::Internal::Type::BaseModel
@@ -23,13 +24,16 @@ module Orb
2324

2425
attr_accessor type: Orb::Models::MatrixSubLineItem::type_
2526

27+
attr_accessor scaled_quantity: Float?
28+
2629
def initialize: (
2730
amount: String,
2831
grouping: Orb::SubLineItemGrouping?,
2932
matrix_config: Orb::SubLineItemMatrixConfig,
3033
name: String,
3134
quantity: Float,
32-
type: Orb::Models::MatrixSubLineItem::type_
35+
type: Orb::Models::MatrixSubLineItem::type_,
36+
?scaled_quantity: Float?
3337
) -> void
3438

3539
def to_hash: -> {
@@ -38,7 +42,8 @@ module Orb
3842
matrix_config: Orb::SubLineItemMatrixConfig,
3943
name: String,
4044
quantity: Float,
41-
type: Orb::Models::MatrixSubLineItem::type_
45+
type: Orb::Models::MatrixSubLineItem::type_,
46+
scaled_quantity: Float?
4247
}
4348

4449
type type_ = :matrix

0 commit comments

Comments
 (0)