Method: AdvancedBilling::InvoiceLineItemEventData#initialize
- Defined in:
- lib/advanced_billing/models/invoice_line_item_event_data.rb
#initialize(uid: SKIP, title: SKIP, description: SKIP, quantity: SKIP, quantity_delta: SKIP, unit_price: SKIP, period_range_start: SKIP, period_range_end: SKIP, amount: SKIP, line_references: SKIP, pricing_details_index: SKIP, pricing_details: SKIP, tax_code: SKIP, tax_amount: SKIP, product_id: SKIP, product_price_point_id: SKIP, price_point_id: SKIP, component_id: SKIP, billing_schedule_item_id: SKIP, custom_item: SKIP, additional_properties: {}) ⇒ InvoiceLineItemEventData
Returns a new instance of InvoiceLineItemEventData.
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/advanced_billing/models/invoice_line_item_event_data.rb', line 158 def initialize(uid: SKIP, title: SKIP, description: SKIP, quantity: SKIP, quantity_delta: SKIP, unit_price: SKIP, period_range_start: SKIP, period_range_end: SKIP, amount: SKIP, line_references: SKIP, pricing_details_index: SKIP, pricing_details: SKIP, tax_code: SKIP, tax_amount: SKIP, product_id: SKIP, product_price_point_id: SKIP, price_point_id: SKIP, component_id: SKIP, billing_schedule_item_id: SKIP, custom_item: SKIP, additional_properties: {}) # Add additional model properties to the instance. additional_properties.each do |_name, _value| instance_variable_set("@#{_name}", _value) end @uid = uid unless uid == SKIP @title = title unless title == SKIP @description = description unless description == SKIP @quantity = quantity unless quantity == SKIP @quantity_delta = quantity_delta unless quantity_delta == SKIP @unit_price = unit_price unless unit_price == SKIP @period_range_start = period_range_start unless period_range_start == SKIP @period_range_end = period_range_end unless period_range_end == SKIP @amount = amount unless amount == SKIP @line_references = line_references unless line_references == SKIP @pricing_details_index = pricing_details_index unless pricing_details_index == SKIP @pricing_details = pricing_details unless pricing_details == SKIP @tax_code = tax_code unless tax_code == SKIP @tax_amount = tax_amount unless tax_amount == SKIP @product_id = product_id unless product_id == SKIP @product_price_point_id = product_price_point_id unless product_price_point_id == SKIP @price_point_id = price_point_id unless price_point_id == SKIP @component_id = component_id unless component_id == SKIP @billing_schedule_item_id = billing_schedule_item_id unless billing_schedule_item_id == SKIP @custom_item = custom_item unless custom_item == SKIP end |