|
| 1 | +# frozen_string_literal: true |
| 2 | + |
| 3 | +class AvisImpot |
| 4 | + include ActiveModel::Model |
| 5 | + include ActiveModel::Attributes |
| 6 | + |
| 7 | + # 2ddoc-specific |
| 8 | + attribute :two_ddoc, :boolean |
| 9 | + attribute :reference_avis, :string |
| 10 | + attribute :annee_des_revenus, :integer |
| 11 | + attribute :nombre_de_parts, :float |
| 12 | + attribute :declarant_1, :string |
| 13 | + attribute :declarant_1_numero_fiscal, :string |
| 14 | + attribute :declarant_2, :string |
| 15 | + attribute :declarant_2_numero_fiscal, :string |
| 16 | + attribute :revenu_fiscal_de_reference, :integer |
| 17 | + attribute :impot_revenu_net, :integer |
| 18 | + attribute :reste_a_payer, :integer |
| 19 | + attribute :retenue_a_la_source, :integer |
| 20 | + attribute :date_mise_en_recouvrement, :date |
| 21 | + |
| 22 | + # APIGeoService.parse_ban_address output |
| 23 | + attribute :label, :string |
| 24 | + attribute :type, :string |
| 25 | + attribute :street_address, :string |
| 26 | + attribute :street_number, :string |
| 27 | + attribute :street_name, :string |
| 28 | + attribute :postal_code, :string |
| 29 | + attribute :city_code, :string |
| 30 | + attribute :city_name, :string |
| 31 | + attribute :department_code, :string |
| 32 | + attribute :department_name, :string |
| 33 | + attribute :region_code, :string |
| 34 | + attribute :region_name, :string |
| 35 | + attribute :country_code, :string |
| 36 | + attribute :country_name, :string |
| 37 | +end |
0 commit comments