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 +4 -4
- data/lib/dynaccount/debtor_subscription.rb +16 -1
- data/lib/dynaccount/dynaccount_object.rb +4 -0
- data/lib/dynaccount/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 124058c97bc5b73e8f0dc1187c9a88f806ab428a
|
4
|
+
data.tar.gz: da78a2c86f8aab48a5771a3954d249b66e02f49d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
[
|
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)] }
|
data/lib/dynaccount/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|