Skip to content

Commit d1fc414

Browse files
feat(api): api update
1 parent a4faf55 commit d1fc414

File tree

7 files changed

+50
-4
lines changed

7 files changed

+50
-4
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-ab79d1df8310a4fc3089fcf814f9fb00c7341acc254aafe34479af0f871d244b.yml
3-
openapi_spec_hash: 9416d6718ca4eeb3c20790187348b5b0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b6ec9a6bf40b74575d917ab145b2413bc61dcd6989bb9d1aa41624bf3437599e.yml
3+
openapi_spec_hash: 53cf9363c3bd9649e0af5f713abdcba7
44
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2

lib/orb/models/subscription_list_params.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,28 @@ class SubscriptionListParams < Orb::Internal::Type::BaseModel
4444
# @return [Array<String>, nil]
4545
optional :external_customer_id, Orb::Internal::Type::ArrayOf[String], nil?: true
4646

47+
# @!attribute external_plan_id
48+
#
49+
# @return [String, nil]
50+
optional :external_plan_id, String, nil?: true
51+
4752
# @!attribute limit
4853
# The number of items to fetch. Defaults to 20.
4954
#
5055
# @return [Integer, nil]
5156
optional :limit, Integer
5257

58+
# @!attribute plan_id
59+
#
60+
# @return [String, nil]
61+
optional :plan_id, String, nil?: true
62+
5363
# @!attribute status
5464
#
5565
# @return [Symbol, Orb::Models::SubscriptionListParams::Status, nil]
5666
optional :status, enum: -> { Orb::SubscriptionListParams::Status }, nil?: true
5767

58-
# @!method initialize(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, customer_id: nil, external_customer_id: nil, limit: nil, status: nil, request_options: {})
68+
# @!method initialize(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, customer_id: nil, external_customer_id: nil, external_plan_id: nil, limit: nil, plan_id: nil, status: nil, request_options: {})
5969
# Some parameter documentations has been truncated, see
6070
# {Orb::Models::SubscriptionListParams} for more details.
6171
#
@@ -73,8 +83,12 @@ class SubscriptionListParams < Orb::Internal::Type::BaseModel
7383
#
7484
# @param external_customer_id [Array<String>, nil]
7585
#
86+
# @param external_plan_id [String, nil]
87+
#
7688
# @param limit [Integer] The number of items to fetch. Defaults to 20.
7789
#
90+
# @param plan_id [String, nil]
91+
#
7892
# @param status [Symbol, Orb::Models::SubscriptionListParams::Status, nil]
7993
#
8094
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]

lib/orb/resources/subscriptions.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def update(subscription_id, params = {})
397397
# for multiple customers, use the customer_id[] or external_customer_id[] query
398398
# parameters.
399399
#
400-
# @overload list(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, customer_id: nil, external_customer_id: nil, limit: nil, status: nil, request_options: {})
400+
# @overload list(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, customer_id: nil, external_customer_id: nil, external_plan_id: nil, limit: nil, plan_id: nil, status: nil, request_options: {})
401401
#
402402
# @param created_at_gt [Time, nil]
403403
#
@@ -413,8 +413,12 @@ def update(subscription_id, params = {})
413413
#
414414
# @param external_customer_id [Array<String>, nil]
415415
#
416+
# @param external_plan_id [String, nil]
417+
#
416418
# @param limit [Integer] The number of items to fetch. Defaults to 20.
417419
#
420+
# @param plan_id [String, nil]
421+
#
418422
# @param status [Symbol, Orb::Models::SubscriptionListParams::Status, nil]
419423
#
420424
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]

rbi/orb/models/subscription_list_params.rbi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,19 @@ module Orb
3434
sig { returns(T.nilable(T::Array[String])) }
3535
attr_accessor :external_customer_id
3636

37+
sig { returns(T.nilable(String)) }
38+
attr_accessor :external_plan_id
39+
3740
# The number of items to fetch. Defaults to 20.
3841
sig { returns(T.nilable(Integer)) }
3942
attr_reader :limit
4043

4144
sig { params(limit: Integer).void }
4245
attr_writer :limit
4346

47+
sig { returns(T.nilable(String)) }
48+
attr_accessor :plan_id
49+
4450
sig { returns(T.nilable(Orb::SubscriptionListParams::Status::OrSymbol)) }
4551
attr_accessor :status
4652

@@ -53,7 +59,9 @@ module Orb
5359
cursor: T.nilable(String),
5460
customer_id: T.nilable(T::Array[String]),
5561
external_customer_id: T.nilable(T::Array[String]),
62+
external_plan_id: T.nilable(String),
5663
limit: Integer,
64+
plan_id: T.nilable(String),
5765
status: T.nilable(Orb::SubscriptionListParams::Status::OrSymbol),
5866
request_options: Orb::RequestOptions::OrHash
5967
).returns(T.attached_class)
@@ -68,8 +76,10 @@ module Orb
6876
cursor: nil,
6977
customer_id: nil,
7078
external_customer_id: nil,
79+
external_plan_id: nil,
7180
# The number of items to fetch. Defaults to 20.
7281
limit: nil,
82+
plan_id: nil,
7383
status: nil,
7484
request_options: {}
7585
)
@@ -85,7 +95,9 @@ module Orb
8595
cursor: T.nilable(String),
8696
customer_id: T.nilable(T::Array[String]),
8797
external_customer_id: T.nilable(T::Array[String]),
98+
external_plan_id: T.nilable(String),
8899
limit: Integer,
100+
plan_id: T.nilable(String),
89101
status: T.nilable(Orb::SubscriptionListParams::Status::OrSymbol),
90102
request_options: Orb::RequestOptions
91103
}

rbi/orb/resources/subscriptions.rbi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,9 @@ module Orb
470470
cursor: T.nilable(String),
471471
customer_id: T.nilable(T::Array[String]),
472472
external_customer_id: T.nilable(T::Array[String]),
473+
external_plan_id: T.nilable(String),
473474
limit: Integer,
475+
plan_id: T.nilable(String),
474476
status: T.nilable(Orb::SubscriptionListParams::Status::OrSymbol),
475477
request_options: Orb::RequestOptions::OrHash
476478
).returns(Orb::Internal::Page[Orb::Subscription])
@@ -485,8 +487,10 @@ module Orb
485487
cursor: nil,
486488
customer_id: nil,
487489
external_customer_id: nil,
490+
external_plan_id: nil,
488491
# The number of items to fetch. Defaults to 20.
489492
limit: nil,
493+
plan_id: nil,
490494
status: nil,
491495
request_options: {}
492496
)

sig/orb/models/subscription_list_params.rbs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ module Orb
99
cursor: String?,
1010
customer_id: ::Array[String]?,
1111
external_customer_id: ::Array[String]?,
12+
external_plan_id: String?,
1213
limit: Integer,
14+
plan_id: String?,
1315
status: Orb::Models::SubscriptionListParams::status?
1416
}
1517
& Orb::Internal::Type::request_parameters
@@ -32,10 +34,14 @@ module Orb
3234

3335
attr_accessor external_customer_id: ::Array[String]?
3436

37+
attr_accessor external_plan_id: String?
38+
3539
attr_reader limit: Integer?
3640

3741
def limit=: (Integer) -> Integer
3842

43+
attr_accessor plan_id: String?
44+
3945
attr_accessor status: Orb::Models::SubscriptionListParams::status?
4046

4147
def initialize: (
@@ -46,7 +52,9 @@ module Orb
4652
?cursor: String?,
4753
?customer_id: ::Array[String]?,
4854
?external_customer_id: ::Array[String]?,
55+
?external_plan_id: String?,
4956
?limit: Integer,
57+
?plan_id: String?,
5058
?status: Orb::Models::SubscriptionListParams::status?,
5159
?request_options: Orb::request_opts
5260
) -> void
@@ -59,7 +67,9 @@ module Orb
5967
cursor: String?,
6068
customer_id: ::Array[String]?,
6169
external_customer_id: ::Array[String]?,
70+
external_plan_id: String?,
6271
limit: Integer,
72+
plan_id: String?,
6373
status: Orb::Models::SubscriptionListParams::status?,
6474
request_options: Orb::RequestOptions
6575
}

sig/orb/resources/subscriptions.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ module Orb
5656
?cursor: String?,
5757
?customer_id: ::Array[String]?,
5858
?external_customer_id: ::Array[String]?,
59+
?external_plan_id: String?,
5960
?limit: Integer,
61+
?plan_id: String?,
6062
?status: Orb::Models::SubscriptionListParams::status?,
6163
?request_options: Orb::request_opts
6264
) -> Orb::Internal::Page[Orb::Subscription]

0 commit comments

Comments
 (0)