Skip to content

Commit 6ada340

Browse files
feat(api): api update
1 parent fd9372e commit 6ada340

File tree

9 files changed

+28
-74
lines changed

9 files changed

+28
-74
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-56d9f85a45eb4dfc07c2994617e1c98554d6dd748245fa4deeb706fe959c14bb.yml
3-
openapi_spec_hash: 64548564dc8ce80ef3ad38fc8cb56b30
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-672b562b91c2e644498b93b1940f8866576a6734a81346b324ed5792e9276bf3.yml
3+
openapi_spec_hash: 3c1a3cc113493afd824bdc6773a202bb
44
config_hash: e6db17547fe854b1c240407cf4c6dc9e

lib/orb/models/customers/credit_list_by_external_id_response.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class CreditListByExternalIDResponse < Orb::Internal::Type::BaseModel
5858

5959
class Filter < Orb::Internal::Type::BaseModel
6060
# @!attribute field
61-
# The property of the price to filter on.
61+
# The property of the price the block applies to. Only item_id is supported.
6262
#
6363
# @return [Symbol, Orb::Models::Customers::CreditListByExternalIDResponse::Filter::Field]
6464
required :field, enum: -> { Orb::Models::Customers::CreditListByExternalIDResponse::Filter::Field }
@@ -76,23 +76,21 @@ class Filter < Orb::Internal::Type::BaseModel
7676
required :values, Orb::Internal::Type::ArrayOf[String]
7777

7878
# @!method initialize(field:, operator:, values:)
79-
# @param field [Symbol, Orb::Models::Customers::CreditListByExternalIDResponse::Filter::Field] The property of the price to filter on.
79+
# A PriceFilter that only allows item_id field for block filters.
80+
#
81+
# @param field [Symbol, Orb::Models::Customers::CreditListByExternalIDResponse::Filter::Field] The property of the price the block applies to. Only item_id is supported.
8082
#
8183
# @param operator [Symbol, Orb::Models::Customers::CreditListByExternalIDResponse::Filter::Operator] Should prices that match the filter be included or excluded.
8284
#
8385
# @param values [Array<String>] The IDs or values that match this filter.
8486

85-
# The property of the price to filter on.
87+
# The property of the price the block applies to. Only item_id is supported.
8688
#
8789
# @see Orb::Models::Customers::CreditListByExternalIDResponse::Filter#field
8890
module Field
8991
extend Orb::Internal::Type::Enum
9092

91-
PRICE_ID = :price_id
9293
ITEM_ID = :item_id
93-
PRICE_TYPE = :price_type
94-
CURRENCY = :currency
95-
PRICING_UNIT_ID = :pricing_unit_id
9694

9795
# @!method self.values
9896
# @return [Array<Symbol>]

lib/orb/models/customers/credit_list_response.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class CreditListResponse < Orb::Internal::Type::BaseModel
5757

5858
class Filter < Orb::Internal::Type::BaseModel
5959
# @!attribute field
60-
# The property of the price to filter on.
60+
# The property of the price the block applies to. Only item_id is supported.
6161
#
6262
# @return [Symbol, Orb::Models::Customers::CreditListResponse::Filter::Field]
6363
required :field, enum: -> { Orb::Models::Customers::CreditListResponse::Filter::Field }
@@ -75,23 +75,21 @@ class Filter < Orb::Internal::Type::BaseModel
7575
required :values, Orb::Internal::Type::ArrayOf[String]
7676

7777
# @!method initialize(field:, operator:, values:)
78-
# @param field [Symbol, Orb::Models::Customers::CreditListResponse::Filter::Field] The property of the price to filter on.
78+
# A PriceFilter that only allows item_id field for block filters.
79+
#
80+
# @param field [Symbol, Orb::Models::Customers::CreditListResponse::Filter::Field] The property of the price the block applies to. Only item_id is supported.
7981
#
8082
# @param operator [Symbol, Orb::Models::Customers::CreditListResponse::Filter::Operator] Should prices that match the filter be included or excluded.
8183
#
8284
# @param values [Array<String>] The IDs or values that match this filter.
8385

84-
# The property of the price to filter on.
86+
# The property of the price the block applies to. Only item_id is supported.
8587
#
8688
# @see Orb::Models::Customers::CreditListResponse::Filter#field
8789
module Field
8890
extend Orb::Internal::Type::Enum
8991

90-
PRICE_ID = :price_id
9192
ITEM_ID = :item_id
92-
PRICE_TYPE = :price_type
93-
CURRENCY = :currency
94-
PRICING_UNIT_ID = :pricing_unit_id
9593

9694
# @!method self.values
9795
# @return [Array<Symbol>]

lib/orb/resources/events/backfills.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ class Backfills
4545
# expressiveness of computed properties allows you to deprecate existing events
4646
# based on both a period of time and specific property values.
4747
#
48+
# You may not have multiple backfills in a pending or pending_revert state with
49+
# overlapping timeframes.
50+
#
4851
# @overload create(timeframe_end:, timeframe_start:, close_time: nil, customer_id: nil, deprecation_filter: nil, external_customer_id: nil, replace_existing_events: nil, request_options: {})
4952
#
5053
# @param timeframe_end [Time] The (exclusive) end of the usage timeframe affected by this backfill. By default

rbi/orb/models/customers/credit_list_by_external_id_response.rbi

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module Orb
104104
)
105105
end
106106

107-
# The property of the price to filter on.
107+
# The property of the price the block applies to. Only item_id is supported.
108108
sig do
109109
returns(
110110
Orb::Models::Customers::CreditListByExternalIDResponse::Filter::Field::TaggedSymbol
@@ -124,6 +124,7 @@ module Orb
124124
sig { returns(T::Array[String]) }
125125
attr_accessor :values
126126

127+
# A PriceFilter that only allows item_id field for block filters.
127128
sig do
128129
params(
129130
field:
@@ -134,7 +135,7 @@ module Orb
134135
).returns(T.attached_class)
135136
end
136137
def self.new(
137-
# The property of the price to filter on.
138+
# The property of the price the block applies to. Only item_id is supported.
138139
field:,
139140
# Should prices that match the filter be included or excluded.
140141
operator:,
@@ -157,7 +158,7 @@ module Orb
157158
def to_hash
158159
end
159160

160-
# The property of the price to filter on.
161+
# The property of the price the block applies to. Only item_id is supported.
161162
module Field
162163
extend Orb::Internal::Type::Enum
163164

@@ -170,31 +171,11 @@ module Orb
170171
end
171172
OrSymbol = T.type_alias { T.any(Symbol, String) }
172173

173-
PRICE_ID =
174-
T.let(
175-
:price_id,
176-
Orb::Models::Customers::CreditListByExternalIDResponse::Filter::Field::TaggedSymbol
177-
)
178174
ITEM_ID =
179175
T.let(
180176
:item_id,
181177
Orb::Models::Customers::CreditListByExternalIDResponse::Filter::Field::TaggedSymbol
182178
)
183-
PRICE_TYPE =
184-
T.let(
185-
:price_type,
186-
Orb::Models::Customers::CreditListByExternalIDResponse::Filter::Field::TaggedSymbol
187-
)
188-
CURRENCY =
189-
T.let(
190-
:currency,
191-
Orb::Models::Customers::CreditListByExternalIDResponse::Filter::Field::TaggedSymbol
192-
)
193-
PRICING_UNIT_ID =
194-
T.let(
195-
:pricing_unit_id,
196-
Orb::Models::Customers::CreditListByExternalIDResponse::Filter::Field::TaggedSymbol
197-
)
198179

199180
sig do
200181
override.returns(

rbi/orb/models/customers/credit_list_response.rbi

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module Orb
9797
)
9898
end
9999

100-
# The property of the price to filter on.
100+
# The property of the price the block applies to. Only item_id is supported.
101101
sig do
102102
returns(
103103
Orb::Models::Customers::CreditListResponse::Filter::Field::TaggedSymbol
@@ -117,6 +117,7 @@ module Orb
117117
sig { returns(T::Array[String]) }
118118
attr_accessor :values
119119

120+
# A PriceFilter that only allows item_id field for block filters.
120121
sig do
121122
params(
122123
field:
@@ -127,7 +128,7 @@ module Orb
127128
).returns(T.attached_class)
128129
end
129130
def self.new(
130-
# The property of the price to filter on.
131+
# The property of the price the block applies to. Only item_id is supported.
131132
field:,
132133
# Should prices that match the filter be included or excluded.
133134
operator:,
@@ -150,7 +151,7 @@ module Orb
150151
def to_hash
151152
end
152153

153-
# The property of the price to filter on.
154+
# The property of the price the block applies to. Only item_id is supported.
154155
module Field
155156
extend Orb::Internal::Type::Enum
156157

@@ -163,31 +164,11 @@ module Orb
163164
end
164165
OrSymbol = T.type_alias { T.any(Symbol, String) }
165166

166-
PRICE_ID =
167-
T.let(
168-
:price_id,
169-
Orb::Models::Customers::CreditListResponse::Filter::Field::TaggedSymbol
170-
)
171167
ITEM_ID =
172168
T.let(
173169
:item_id,
174170
Orb::Models::Customers::CreditListResponse::Filter::Field::TaggedSymbol
175171
)
176-
PRICE_TYPE =
177-
T.let(
178-
:price_type,
179-
Orb::Models::Customers::CreditListResponse::Filter::Field::TaggedSymbol
180-
)
181-
CURRENCY =
182-
T.let(
183-
:currency,
184-
Orb::Models::Customers::CreditListResponse::Filter::Field::TaggedSymbol
185-
)
186-
PRICING_UNIT_ID =
187-
T.let(
188-
:pricing_unit_id,
189-
Orb::Models::Customers::CreditListResponse::Filter::Field::TaggedSymbol
190-
)
191172

192173
sig do
193174
override.returns(

rbi/orb/resources/events/backfills.rbi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ module Orb
4141
# [computed properties](/extensibility/advanced-metrics#computed-properties). The
4242
# expressiveness of computed properties allows you to deprecate existing events
4343
# based on both a period of time and specific property values.
44+
#
45+
# You may not have multiple backfills in a pending or pending_revert state with
46+
# overlapping timeframes.
4447
sig do
4548
params(
4649
timeframe_end: Time,

sig/orb/models/customers/credit_list_by_external_id_response.rbs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,12 @@ module Orb
7878
values: ::Array[String]
7979
}
8080

81-
type field =
82-
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
81+
type field = :item_id
8382

8483
module Field
8584
extend Orb::Internal::Type::Enum
8685

87-
PRICE_ID: :price_id
8886
ITEM_ID: :item_id
89-
PRICE_TYPE: :price_type
90-
CURRENCY: :currency
91-
PRICING_UNIT_ID: :pricing_unit_id
9287

9388
def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::Filter::field]
9489
end

sig/orb/models/customers/credit_list_response.rbs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,12 @@ module Orb
7878
values: ::Array[String]
7979
}
8080

81-
type field =
82-
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
81+
type field = :item_id
8382

8483
module Field
8584
extend Orb::Internal::Type::Enum
8685

87-
PRICE_ID: :price_id
8886
ITEM_ID: :item_id
89-
PRICE_TYPE: :price_type
90-
CURRENCY: :currency
91-
PRICING_UNIT_ID: :pricing_unit_id
9287

9388
def self?.values: -> ::Array[Orb::Models::Customers::CreditListResponse::Filter::field]
9489
end

0 commit comments

Comments
 (0)