@@ -154,6 +154,14 @@ class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel
154154 # @return [Integer]
155155 required :net_terms , Integer
156156
157+ # @!attribute pending_subscription_change
158+ # A pending subscription change if one exists on this subscription.
159+ #
160+ # @return [Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange, nil]
161+ required :pending_subscription_change ,
162+ -> { Orb ::Models ::SubscriptionCancelResponse ::PendingSubscriptionChange } ,
163+ nil? : true
164+
157165 # @!attribute plan
158166 # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
159167 # subscribed to by a customer. Plans define the billing behavior of the
@@ -191,6 +199,14 @@ class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel
191199 # @return [Orb::Models::SubscriptionCancelResponse::TrialInfo]
192200 required :trial_info , -> { Orb ::Models ::SubscriptionCancelResponse ::TrialInfo }
193201
202+ # @!attribute changed_resources
203+ # The resources that were changed as part of this operation. Only present when
204+ # fetched through the subscription changes API or if the
205+ # `include_changed_resources` parameter was passed in the request.
206+ #
207+ # @return [Orb::Models::SubscriptionCancelResponse::ChangedResources, nil]
208+ optional :changed_resources , -> { Orb ::Models ::SubscriptionCancelResponse ::ChangedResources } , nil? : true
209+
194210 # @!parse
195211 # # @param id [String]
196212 # # @param active_plan_phase_order [Integer, nil]
@@ -211,12 +227,14 @@ class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel
211227 # # @param metadata [Hash{Symbol=>String}]
212228 # # @param minimum_intervals [Array<Orb::Models::SubscriptionCancelResponse::MinimumInterval>]
213229 # # @param net_terms [Integer]
230+ # # @param pending_subscription_change [Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange, nil]
214231 # # @param plan [Orb::Models::Plan]
215232 # # @param price_intervals [Array<Orb::Models::SubscriptionCancelResponse::PriceInterval>]
216233 # # @param redeemed_coupon [Orb::Models::SubscriptionCancelResponse::RedeemedCoupon, nil]
217234 # # @param start_date [Time]
218235 # # @param status [Symbol, Orb::Models::SubscriptionCancelResponse::Status]
219236 # # @param trial_info [Orb::Models::SubscriptionCancelResponse::TrialInfo]
237+ # # @param changed_resources [Orb::Models::SubscriptionCancelResponse::ChangedResources, nil]
220238 # #
221239 # def initialize(
222240 # id:,
@@ -238,12 +256,14 @@ class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel
238256 # metadata:,
239257 # minimum_intervals:,
240258 # net_terms:,
259+ # pending_subscription_change:,
241260 # plan:,
242261 # price_intervals:,
243262 # redeemed_coupon:,
244263 # start_date:,
245264 # status:,
246265 # trial_info:,
266+ # changed_resources: nil,
247267 # **
248268 # )
249269 # super
@@ -1019,6 +1039,23 @@ class MinimumInterval < Orb::Internal::Type::BaseModel
10191039 # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
10201040 end
10211041
1042+ # @see Orb::Models::SubscriptionCancelResponse#pending_subscription_change
1043+ class PendingSubscriptionChange < Orb ::Internal ::Type ::BaseModel
1044+ # @!attribute id
1045+ #
1046+ # @return [String]
1047+ required :id , String
1048+
1049+ # @!parse
1050+ # # A pending subscription change if one exists on this subscription.
1051+ # #
1052+ # # @param id [String]
1053+ # #
1054+ # def initialize(id:, **) = super
1055+
1056+ # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1057+ end
1058+
10221059 class PriceInterval < Orb ::Internal ::Type ::BaseModel
10231060 # @!attribute id
10241061 #
@@ -1215,6 +1252,47 @@ class TrialInfo < Orb::Internal::Type::BaseModel
12151252
12161253 # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
12171254 end
1255+
1256+ # @see Orb::Models::SubscriptionCancelResponse#changed_resources
1257+ class ChangedResources < Orb ::Internal ::Type ::BaseModel
1258+ # @!attribute created_credit_notes
1259+ # The credit notes that were created as part of this operation.
1260+ #
1261+ # @return [Array<Orb::Models::CreditNote>]
1262+ required :created_credit_notes , -> { Orb ::Internal ::Type ::ArrayOf [ Orb ::Models ::CreditNote ] }
1263+
1264+ # @!attribute created_invoices
1265+ # The invoices that were created as part of this operation.
1266+ #
1267+ # @return [Array<Orb::Models::Invoice>]
1268+ required :created_invoices , -> { Orb ::Internal ::Type ::ArrayOf [ Orb ::Models ::Invoice ] }
1269+
1270+ # @!attribute voided_credit_notes
1271+ # The credit notes that were voided as part of this operation.
1272+ #
1273+ # @return [Array<Orb::Models::CreditNote>]
1274+ required :voided_credit_notes , -> { Orb ::Internal ::Type ::ArrayOf [ Orb ::Models ::CreditNote ] }
1275+
1276+ # @!attribute voided_invoices
1277+ # The invoices that were voided as part of this operation.
1278+ #
1279+ # @return [Array<Orb::Models::Invoice>]
1280+ required :voided_invoices , -> { Orb ::Internal ::Type ::ArrayOf [ Orb ::Models ::Invoice ] }
1281+
1282+ # @!parse
1283+ # # The resources that were changed as part of this operation. Only present when
1284+ # # fetched through the subscription changes API or if the
1285+ # # `include_changed_resources` parameter was passed in the request.
1286+ # #
1287+ # # @param created_credit_notes [Array<Orb::Models::CreditNote>]
1288+ # # @param created_invoices [Array<Orb::Models::Invoice>]
1289+ # # @param voided_credit_notes [Array<Orb::Models::CreditNote>]
1290+ # # @param voided_invoices [Array<Orb::Models::Invoice>]
1291+ # #
1292+ # def initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:, **) = super
1293+
1294+ # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
1295+ end
12181296 end
12191297 end
12201298end
0 commit comments