Module: Orb::Models::MutatedSubscription::DiscountInterval
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/orb/models/mutated_subscription.rb
Instance Method Summary collapse
-
#initialize(id: , active_plan_phase_order: , adjustment_intervals: , auto_collection: , billing_cycle_anchor_configuration: , billing_cycle_day: , created_at: , current_billing_period_end_date: , current_billing_period_start_date: , customer: , default_invoice_memo: , discount_intervals: , end_date: , fixed_fee_quantity_schedule: , invoicing_threshold: , maximum_intervals: , metadata: , minimum_intervals: , name: , net_terms: , pending_subscription_change: , plan: , price_intervals: , redeemed_coupon: , start_date: , status: , trial_info: , changed_resources: nil) ⇒ Object
Some parameter documentations has been truncated, see Orb::Models::MutatedSubscription for more details.
Methods included from Internal::Type::Union
==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Instance Method Details
#initialize(id: , active_plan_phase_order: , adjustment_intervals: , auto_collection: , billing_cycle_anchor_configuration: , billing_cycle_day: , created_at: , current_billing_period_end_date: , current_billing_period_start_date: , customer: , default_invoice_memo: , discount_intervals: , end_date: , fixed_fee_quantity_schedule: , invoicing_threshold: , maximum_intervals: , metadata: , minimum_intervals: , name: , net_terms: , pending_subscription_change: , plan: , price_intervals: , redeemed_coupon: , start_date: , status: , trial_info: , changed_resources: nil) ⇒ Object
Some parameter documentations has been truncated, see Orb::Models::MutatedSubscription for more details.
277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'lib/orb/models/mutated_subscription.rb', line 277 module DiscountInterval extend Orb::Internal::Type::Union discriminator :discount_type variant :amount, -> { Orb::AmountDiscountInterval } variant :percentage, -> { Orb::PercentageDiscountInterval } variant :usage, -> { Orb::UsageDiscountInterval } # @!method self.variants # @return [Array(Orb::Models::AmountDiscountInterval, Orb::Models::PercentageDiscountInterval, Orb::Models::UsageDiscountInterval)] end |