File tree 4 files changed +27
-0
lines changed 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,10 @@ def whitelist_params(params)
74
74
zipcode : params [ :zipcode ] ,
75
75
currency : params [ :currency ] ,
76
76
tax_codes : params [ :tax_codes ] ,
77
+ invoice_custom_section_codes : params [ :invoice_custom_section_codes ] ,
77
78
timezone : params [ :timezone ] ,
78
79
finalize_zero_amount_invoice : params [ :finalize_zero_amount_invoice ] ,
80
+ skip_invoice_custom_sections : params [ :skip_invoice_custom_sections ] ,
79
81
}
80
82
81
83
whitelist_billing_configuration ( params [ :billing_configuration ] ) . tap do |config |
Original file line number Diff line number Diff line change 22
22
net_payment_term { nil }
23
23
tax_identification_number { 'EU123456789' }
24
24
finalize_zero_amount_invoice { 'inherit' }
25
+ skip_invoice_custom_sections { false }
25
26
billing_configuration do
26
27
{
27
28
invoice_grace_period : 3 ,
62
63
end
63
64
currency { 'EUR' }
64
65
tax_codes { [ 'tax_code' ] }
66
+ invoice_custom_section_codes { [ 'ics_code' ] }
65
67
timezone { 'Europe/Paris' }
66
68
end
67
69
end
Original file line number Diff line number Diff line change 25
25
"timezone" : " Europe/Paris" ,
26
26
"applicable_timezone" : " Europe/Paris" ,
27
27
"finalize_zero_amount_invoice" : " inherit" ,
28
+ "skip_invoice_custom_sections" : false ,
28
29
"billing_configuration" : {
29
30
"invoice_grace_period" : 3 ,
30
31
"payment_provider" : " stripe" ,
72
73
"applied_to_organization" : false ,
73
74
"created_at" : " 2022-04-29T08:59:51Z"
74
75
}
76
+ ],
77
+ "invoice_custom_sections" : [
78
+ {
79
+ "lago_id" : " 1a901a90-1a90-1a90-1a90-1a901a901a90" ,
80
+ "code" : " ics_code" ,
81
+ "name" : " ics_name" ,
82
+ "description" : " something about this section" ,
83
+ "details" : " This part will be shown at the invoice" ,
84
+ "display_name" : " Section name displayed on invoice" ,
85
+ "applied_to_organization" : true ,
86
+ "created_at" : " 2022-04-29T08:59:51Z"
87
+ }
75
88
]
76
89
}
77
90
}
Original file line number Diff line number Diff line change 43
43
"created_at" : " 2022-04-29T08:59:51Z"
44
44
}
45
45
],
46
+ "applied_invoice_custom_sections" : [
47
+ {
48
+ "lago_id" : " 1a901a90-1a90-1a90-1a90-1a901a901a90" ,
49
+ "lago_invoice_id" : " 1a901a90-1a90-1a90-1a90-1a901a901a90" ,
50
+ "code" : " ics_code" ,
51
+ "details" : " This part will be shown at the invoice" ,
52
+ "display_name" : " Section name displayed on invoice" ,
53
+ "created_at" : " 2022-04-29T08:59:51Z"
54
+ }
55
+ ],
46
56
"customer" : {
47
57
"lago_id" : " 1a901a90-1a90-1a90-1a90-1a901a901a90" ,
48
58
"external_id" : " 1a901a90-1a90-1a90-1a90-1a901a901a90" ,
You can’t perform that action at this time.
0 commit comments