billogram 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c74271c4cf59264a0d1a2e80dbd20b97fcfe7b9
4
- data.tar.gz: 927324917b261c3e920377e2ae3580d5c9fceeb4
3
+ metadata.gz: 07699d21674fb3782be38688f934cc567a7b27a9
4
+ data.tar.gz: a9442cc49774a5730cfc40edef738de54f3f5adf
5
5
  SHA512:
6
- metadata.gz: 81f9c26de093ad406df5a5297d879029f947f17bfad2703bc6756077e0e06fdef3216f453915fb225d3049bf06e5a0e3f3cae336bf301598e60246da4e27989d
7
- data.tar.gz: eb5a32d202ca9bc4659e5018c1da45274a1007dfd0a8829b7248e18108b15d9426830349870425ac96a4f5cd3f7df614e3e6884eae1db9adb6cf8121c5c7612a
6
+ metadata.gz: 4db372f369c3edcf67e5cc4f049ac1488a7ede0f8baa8c269a5b6088664f03c4df1eb2869bd9c44156af2ab31f91394f8a27c5b5121a86f1ec298eb3f46fedf7
7
+ data.tar.gz: 38c3891949cd6850b2db0fb35f53f375b901795118d2963285b9a06df96abc569a0464bc4f6449a9cac93ddc95a57e4969df6930dbab62412dcb7265a9c4ccc7
@@ -8,7 +8,9 @@ require "billogram/resource"
8
8
  require "billogram/request"
9
9
  require "billogram/resources/address"
10
10
  require "billogram/resources/automatic_reminder"
11
+ require "billogram/resources/automatic_collection"
11
12
  require "billogram/resources/bookkeeping"
13
+ require "billogram/resources/bookkeeping_object"
12
14
  require "billogram/resources/callbacks"
13
15
  require "billogram/resources/contact"
14
16
  require "billogram/resources/customer"
@@ -26,7 +26,7 @@ module Billogram
26
26
  if respond_to?("#{key}=")
27
27
  public_send("#{key}=", value)
28
28
  else
29
- warn("Billogram: unknown attribute #{key}")
29
+ warn("#{self.class}: unknown attribute #{key}")
30
30
  end
31
31
  end
32
32
 
@@ -0,0 +1,5 @@
1
+ module Billogram
2
+ class AutomaticCollection < Resource
3
+ attr_accessor :delay_days, :amount
4
+ end
5
+ end
@@ -8,5 +8,6 @@ module Billogram
8
8
  :reminder_fee_account, :rounding_account, :factoring_receivable_account
9
9
 
10
10
  relation :regional_sweden, :one
11
+ relation :objects, :many, class_override: "BookkeepingObject"
11
12
  end
12
13
  end
@@ -0,0 +1,5 @@
1
+ module Billogram
2
+ class BookkeepingObject < Resource
3
+ attr_accessor :dimension_id, :object_id, :dimension_name, :object_name
4
+ end
5
+ end
@@ -14,12 +14,13 @@ module Billogram
14
14
  relation :info, :one
15
15
  relation :customer, :one
16
16
  relation :regional_sweden, :one
17
+ relation :automatic_collection, :one
17
18
  relation :callbacks, :one, class_override: "Callbacks"
18
19
  relation :detailed_sums, :one, class_override: "DetailedSums"
19
20
 
20
21
  relation :items, :many
21
22
  relation :events, :many
22
- relation :automatic_reminders_settings, :many, class_override: 'AutomaticReminder'
23
+ relation :automatic_reminders_settings, :many, class_override: "AutomaticReminder"
23
24
 
24
25
  COMMANDS = [ :sell, :remind, :collect, :writeoff, :resend, :remind, :payment, :credit, :message, :attach ]
25
26
 
@@ -4,5 +4,6 @@ module Billogram
4
4
  :default_invoice_fee
5
5
 
6
6
  relation :automatic_reminders, :many
7
+ relation :automatic_collection, :many
7
8
  end
8
9
  end
@@ -1,3 +1,3 @@
1
1
  module Billogram
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billogram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Birman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2016-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -135,8 +135,10 @@ files:
135
135
  - lib/billogram/request.rb
136
136
  - lib/billogram/resource.rb
137
137
  - lib/billogram/resources/address.rb
138
+ - lib/billogram/resources/automatic_collection.rb
138
139
  - lib/billogram/resources/automatic_reminder.rb
139
140
  - lib/billogram/resources/bookkeeping.rb
141
+ - lib/billogram/resources/bookkeeping_object.rb
140
142
  - lib/billogram/resources/callbacks.rb
141
143
  - lib/billogram/resources/contact.rb
142
144
  - lib/billogram/resources/customer.rb