module Moneybird::Resource
  class Contact
    include Moneybird::Resource
    extend Moneybird::Resource::ClassMethods

    has_attributes %i(
      address1
      address2
      administration_id
      attention
      bank_account
      chamber_of_commerce
      city
      company_name
      country
      created_at
      credit_card_number
      credit_card_reference
      credit_card_type
      custom_fields
      customer_id
      delivery_method
      email
      email_ubl
      estimate_workflow_id
      events
      firstname
      id
      invoice_workflow_id
      lastname
      notes
      phone
      sales_invoices_url
      send_estimates_to_attention
      send_estimates_to_email
      send_invoices_to_attention
      send_invoices_to_email
      send_method
      sepa_active
      sepa_bic
      sepa_iban
      sepa_iban_account_name
      sepa_mandate_date
      sepa_mandate_id
      sepa_sequence_type
      tax_number
      tax_number_valid
      tax_number_validated_at
      updated_at
      version
      zipcode
    )

    def notes=(notes)
      @notes ||= notes.map{ |note| Moneybird::Resource::Generic::Note.build(note) }
    end

    def events=(events)
      @events ||= events.map{ |event| Moneybird::Resource::Generic::Event.build(event) }
    end
  end
end



module Moneybird::Resource
  class Contact
    include Moneybird::Resource
    extend Moneybird::Resource::ClassMethods

    has_attributes %i(
      address1
      address2
      administration_id
      attention
      bank_account
      chamber_of_commerce
      city
      company_name
      country
      created_at
      credit_card_number
      credit_card_reference
      credit_card_type
      custom_fields
      customer_id
      delivery_method
      email
      email_ubl
      estimate_workflow_id
      events
      firstname
      id
      invoice_workflow_id
      lastname
      notes
      phone
      sales_invoices_url
      send_estimates_to_attention
      send_estimates_to_email
      send_invoices_to_attention
      send_invoices_to_email
      send_method
      sepa_active
      sepa_bic
      sepa_iban
      sepa_iban_account_name
      sepa_mandate_date
      sepa_mandate_id
      sepa_sequence_type
      si_identifier
      si_identifier_type
      tax_number
      tax_number_valid
      tax_number_validated_at
      updated_at
      version
      zipcode
    )

    def notes=(notes)
      @notes ||= notes.map{ |note| Moneybird::Resource::Generic::Note.build(note) }
    end

    def events=(events)
      @events ||= events.map{ |event| Moneybird::Resource::Generic::Event.build(event) }
    end
  end
end



Add si_identifier and si_identifier_type to Contact resource
Add si_identifier and si_identifier_type to Contact resource

The Moneybird gem kept warning me about:
```
W, [2019-11-04T13:02:33.800623 #24299]  WARN -- : Moneybird::Resource::Contact does not have an `si_identifier' attribute
W, [2019-11-04T13:02:33.800687 #24299]  WARN -- : Moneybird::Resource::Contact does not have an `si_identifier_type' attribute
```

The fields are used for Simplerinvoicing. https://www.moneybird.nl/simplerinvoicing/
I dont need them, but the warning was pretty annoying :)