diff --git a/lib/lago/api/resources/customer.rb b/lib/lago/api/resources/customer.rb index 46735a2..e448228 100644 --- a/lib/lago/api/resources/customer.rb +++ b/lib/lago/api/resources/customer.rb @@ -77,7 +77,7 @@ def whitelist_params(params) invoice_custom_section_codes: params[:invoice_custom_section_codes], timezone: params[:timezone], finalize_zero_amount_invoice: params[:finalize_zero_amount_invoice], - skip_invoice_custom_sections: params[:skip_invoice_custom_sections ], + skip_invoice_custom_sections: params[:skip_invoice_custom_sections], } whitelist_billing_configuration(params[:billing_configuration]).tap do |config| diff --git a/spec/fixtures/api/invoice.json b/spec/fixtures/api/invoice.json index e5aa132..17f110b 100644 --- a/spec/fixtures/api/invoice.json +++ b/spec/fixtures/api/invoice.json @@ -45,11 +45,6 @@ ], "applied_invoice_custom_sections": [ { - - code: model.code, - details: model.details, - display_name: model.display_name, - created_at: model.created_at.iso8601, "lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90", "lago_invoice_id": "1a901a90-1a90-1a90-1a90-1a901a901a90", "code": "ics_code",