Module: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/orb/models/invoice_fetch_upcoming_response.rb
Instance Method Summary collapse
-
#initialize(id: , adjusted_subtotal: , adjustments: , amount: , credits_applied: , discount: , end_date: , filter: , grouping: , maximum: , maximum_amount: , minimum: , minimum_amount: , name: , partially_invoiced_amount: , price: , quantity: , start_date: , sub_line_items: , subtotal: , tax_amounts: , usage_customer_ids: ) ⇒ Object
Some parameter documentations has been truncated, see Orb::Models::InvoiceFetchUpcomingResponse::LineItem 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: , adjusted_subtotal: , adjustments: , amount: , credits_applied: , discount: , end_date: , filter: , grouping: , maximum: , maximum_amount: , minimum: , minimum_amount: , name: , partially_invoiced_amount: , price: , quantity: , start_date: , sub_line_items: , subtotal: , tax_amounts: , usage_customer_ids: ) ⇒ Object
Some parameter documentations has been truncated, see Orb::Models::InvoiceFetchUpcomingResponse::LineItem for more details.
938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 |
# File 'lib/orb/models/invoice_fetch_upcoming_response.rb', line 938 module Adjustment extend Orb::Internal::Type::Union discriminator :adjustment_type variant :usage_discount, -> { Orb::MonetaryUsageDiscountAdjustment } variant :amount_discount, -> { Orb::MonetaryAmountDiscountAdjustment } variant :percentage_discount, -> { Orb::MonetaryPercentageDiscountAdjustment } variant :minimum, -> { Orb::MonetaryMinimumAdjustment } variant :maximum, -> { Orb::MonetaryMaximumAdjustment } # @!method self.variants # @return [Array(Orb::Models::MonetaryUsageDiscountAdjustment, Orb::Models::MonetaryAmountDiscountAdjustment, Orb::Models::MonetaryPercentageDiscountAdjustment, Orb::Models::MonetaryMinimumAdjustment, Orb::Models::MonetaryMaximumAdjustment)] end |