dynaccount 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b2dc3fc6c47df04108c861913e7148a7cc89200
4
- data.tar.gz: 92c13b913a211ebea1486500b4583ea1a50c9622
3
+ metadata.gz: 124058c97bc5b73e8f0dc1187c9a88f806ab428a
4
+ data.tar.gz: da78a2c86f8aab48a5771a3954d249b66e02f49d
5
5
  SHA512:
6
- metadata.gz: e58b94452cc96cb24838908475305776859b69a8ac78d93a139f745862fd4082e58c673d6b886a85a82e08be59083343802350a19e08b6ed48328c44fb005beb
7
- data.tar.gz: f7577fb7e0dbd3a694c3709b6900f26e79ab5203922a813d41fa43e8b215f23b00f5cd944b7fe9b82bdf2a4f91b3ac52bd9807e3bde6b559c8fd75141bc6a5f1
6
+ metadata.gz: 32b51abc26c2a0efbc486f78c09c2c97b8038d6eccdfa516af53d86013252b4d8688f07073b4e045129ff0f16df099ed7b12b05299f18d11d456e63e14c7e0e9
7
+ data.tar.gz: 6741cb6170634b3204d4871aa34857aa6284e042e73e0ee0680104e71f5b316ca0d7a9141034f4b4988a07f706089520972d5c6f7d7fd7872fed43dcdede259d
@@ -1,7 +1,22 @@
1
1
  module Dynaccount
2
2
  class DebtorSubscription < DynaccountObject
3
3
  def self.ignore_put
4
- [:id, :is_active, :module_id, :time_next_charge, :vat_amount, :total_amount, :total_weight, :profit_amount]
4
+ [
5
+ :id,
6
+ :is_active,
7
+ :module_id,
8
+ :module_group_id,
9
+ :module_name,
10
+ :module_vatno,
11
+ :module_ean,
12
+ :module_email,
13
+ :module_email_invoice,
14
+ :time_next_charge,
15
+ :vat_amount,
16
+ :total_amount,
17
+ :total_weight,
18
+ :profit_amount
19
+ ]
5
20
  end
6
21
 
7
22
  def self.api_path
@@ -17,6 +17,10 @@ module Dynaccount
17
17
  Dynaccount.request(self.class.url(id, 'put'), attributes, :post).body
18
18
  end
19
19
 
20
+ def destroy
21
+ Dynaccount.request(self.class.url(id, 'delete'), {}, :post).body
22
+ end
23
+
20
24
  def save
21
25
  updt = @keys.select { |k| !self.class.ignore_put.include?(k.to_sym) }
22
26
  .map { |k| [k, send(k)] }
@@ -1,3 +1,3 @@
1
1
  module Dynaccount
2
- VERSION = '0.9.3'.freeze
2
+ VERSION = '0.9.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynaccount
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederik Spang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-01 00:00:00.000000000 Z
11
+ date: 2017-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json