lib/billogram/resources/settings.rb in billogram-0.6.5 vs lib/billogram/resources/settings.rb in billogram-0.6.6

- old
+ new

@@ -1,14 +1,21 @@ +# frozen_string_literal: true + module Billogram class Settings < Resource include Endpoint - attr_accessor :name, :org_no + attr_accessor :name, :org_no, :registration_email relation :tax, :one relation :contact, :one relation :address, :one relation :payment, :one - relation :invoices, :one, class_override: "InvoiceDefaults" + relation :invoices, :one, class_override: 'InvoiceDefaults' relation :bookkeeping, :one + + relation :return_address, :one, class_override: 'Address' + relation :invoice_address, :one, class_override: 'Address' + relation :visiting_address, :one, class_override: 'Address' + relation :registered_office_address, :one, class_override: 'Address' end end