Class: Orb::Models::InvoiceLineItemCreateResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::InvoiceLineItemCreateResponse
- Defined in:
- lib/orb/models/invoice_line_item_create_response.rb
Overview
Defined Under Namespace
Modules: Adjustment, SubLineItem
Instance Attribute Summary collapse
-
#adjusted_subtotal ⇒ String
The line amount after any adjustments and before overage conversion, credits and partial invoicing.
-
#adjustments ⇒ Array<Orb::Models::MonetaryUsageDiscountAdjustment, Orb::Models::MonetaryAmountDiscountAdjustment, Orb::Models::MonetaryPercentageDiscountAdjustment, Orb::Models::MonetaryMinimumAdjustment, Orb::Models::MonetaryMaximumAdjustment>
All adjustments applied to the line item in the order they were applied based on invoice calculations (ie. usage discounts -> amount discounts -> percentage discounts -> minimums -> maximums).
-
#amount ⇒ String
The final amount for a line item after all adjustments and pre paid credits have been applied.
-
#credits_applied ⇒ String
The number of prepaid credits applied.
- #discount ⇒ Orb::Models::PercentageDiscount, ... deprecated Deprecated.
-
#end_date ⇒ Time
The end date of the range of time applied for this line item’s price.
-
#filter ⇒ String?
An additional filter that was used to calculate the usage for this line item.
-
#grouping ⇒ String?
- DEPRECATED
-
For configured prices that are split by a grouping key, this will be populated with the key and a value.
-
#id ⇒ String
A unique ID for this line item.
- #maximum ⇒ Orb::Models::Maximum? deprecated Deprecated.
- #maximum_amount ⇒ String? deprecated Deprecated.
- #minimum ⇒ Orb::Models::Minimum? deprecated Deprecated.
- #minimum_amount ⇒ String? deprecated Deprecated.
-
#name ⇒ String
The name of the price associated with this line item.
-
#partially_invoiced_amount ⇒ String
Any amount applied from a partial invoice.
-
#price ⇒ Orb::Models::Price::Unit, ...
The Price resource represents a price that can be billed on a subscription, resulting in a charge on an invoice in the form of an invoice line item.
-
#quantity ⇒ Float
Either the fixed fee quantity or the usage during the service period.
-
#start_date ⇒ Time
The start date of the range of time applied for this line item’s price.
-
#sub_line_items ⇒ Array<Orb::Models::MatrixSubLineItem, Orb::Models::TierSubLineItem, Orb::Models::OtherSubLineItem>
For complex pricing structures, the line item can be broken down further in ‘sub_line_items`.
-
#subtotal ⇒ String
The line amount before before any adjustments.
-
#tax_amounts ⇒ Array<Orb::Models::TaxAmount>
An array of tax rates and their incurred tax amounts.
-
#usage_customer_ids ⇒ Array<String>?
A list of customer ids that were used to calculate the usage for this line item.
Class Method Summary collapse
Methods inherited from Internal::Type::BaseModel
#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
This class inherits a constructor from Orb::Internal::Type::BaseModel
Instance Attribute Details
#adjusted_subtotal ⇒ String
The line amount after any adjustments and before overage conversion, credits and partial invoicing.
18 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 18 required :adjusted_subtotal, String |
#adjustments ⇒ Array<Orb::Models::MonetaryUsageDiscountAdjustment, Orb::Models::MonetaryAmountDiscountAdjustment, Orb::Models::MonetaryPercentageDiscountAdjustment, Orb::Models::MonetaryMinimumAdjustment, Orb::Models::MonetaryMaximumAdjustment>
All adjustments applied to the line item in the order they were applied based on invoice calculations (ie. usage discounts -> amount discounts -> percentage discounts -> minimums -> maximums).
26 27 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 26 required :adjustments, -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLineItemCreateResponse::Adjustment] } |
#amount ⇒ String
The final amount for a line item after all adjustments and pre paid credits have been applied.
34 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 34 required :amount, String |
#credits_applied ⇒ String
The number of prepaid credits applied.
40 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 40 required :credits_applied, String |
#discount ⇒ Orb::Models::PercentageDiscount, ...
This field is deprecated in favor of ‘adjustments`
48 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 48 required :discount, union: -> { Orb::Discount }, nil?: true |
#end_date ⇒ Time
The end date of the range of time applied for this line item’s price.
54 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 54 required :end_date, Time |
#filter ⇒ String?
An additional filter that was used to calculate the usage for this line item.
60 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 60 required :filter, String, nil?: true |
#grouping ⇒ String?
- DEPRECATED
-
For configured prices that are split by a grouping key, this will
be populated with the key and a value. The ‘amount` and `subtotal` will be the values for this particular grouping.
68 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 68 required :grouping, String, nil?: true |
#id ⇒ String
A unique ID for this line item.
11 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 11 required :id, String |
#maximum ⇒ Orb::Models::Maximum?
This field is deprecated in favor of ‘adjustments`.
76 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 76 required :maximum, -> { Orb::Maximum }, nil?: true |
#maximum_amount ⇒ String?
This field is deprecated in favor of ‘adjustments`.
84 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 84 required :maximum_amount, String, nil?: true |
#minimum ⇒ Orb::Models::Minimum?
This field is deprecated in favor of ‘adjustments`.
92 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 92 required :minimum, -> { Orb::Minimum }, nil?: true |
#minimum_amount ⇒ String?
This field is deprecated in favor of ‘adjustments`.
100 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 100 required :minimum_amount, String, nil?: true |
#name ⇒ String
The name of the price associated with this line item.
106 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 106 required :name, String |
#partially_invoiced_amount ⇒ String
Any amount applied from a partial invoice
112 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 112 required :partially_invoiced_amount, String |
#price ⇒ Orb::Models::Price::Unit, ...
The Price resource represents a price that can be billed on a subscription, resulting in a charge on an invoice in the form of an invoice line item. Prices take a quantity and determine an amount to bill.
Orb supports a few different pricing models out of the box. Each of these models is serialized differently in a given Price object. The model_type field determines the key for the configuration object that is present.
For more on the types of prices, see [the core concepts documentation](/core-concepts#plan-and-price)
127 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 127 required :price, union: -> { Orb::Price } |
#quantity ⇒ Float
Either the fixed fee quantity or the usage during the service period.
133 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 133 required :quantity, Float |
#start_date ⇒ Time
The start date of the range of time applied for this line item’s price.
139 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 139 required :start_date, Time |
#sub_line_items ⇒ Array<Orb::Models::MatrixSubLineItem, Orb::Models::TierSubLineItem, Orb::Models::OtherSubLineItem>
For complex pricing structures, the line item can be broken down further in ‘sub_line_items`.
146 147 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 146 required :sub_line_items, -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem] } |
#subtotal ⇒ String
The line amount before before any adjustments.
153 |
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 153 required :subtotal, String |
Class Method Details
.variants ⇒ Array(Orb::Models::MonetaryUsageDiscountAdjustment, Orb::Models::MonetaryAmountDiscountAdjustment, Orb::Models::MonetaryPercentageDiscountAdjustment, Orb::Models::MonetaryMinimumAdjustment, Orb::Models::MonetaryMaximumAdjustment)
|
|
# File 'lib/orb/models/invoice_line_item_create_response.rb', line 231
|