openbill-ruby 0.1.9 → 0.1.10
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 +4 -4
- data/README.md +1 -0
- data/lib/openbill/service.rb +6 -0
- data/lib/openbill/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: 1e6652a8bf159b897cafbf2696f43515fcf41aa6
|
4
|
+
data.tar.gz: c35248bd384ee35a8ab5e374865145b33f92b281
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aebdd2e263542803b3d367f72d7e078e9d1f84b02a76edf87a61825a2861769c460c42702076cc7930dc7a6640ce1a8167ce457ca717e257cdc366f6e734f823
|
7
|
+
data.tar.gz: ef5ff4174d7b3815c6468820aec561d0e4f82dccc5c41670fb8439f3c8e7c9803ffe9a2569516563ef9e9ce9f2be172a4a748c67cd816b20543a98cd25680ea2
|
data/README.md
CHANGED
data/lib/openbill/service.rb
CHANGED
@@ -47,6 +47,12 @@ module Openbill
|
|
47
47
|
)
|
48
48
|
end
|
49
49
|
|
50
|
+
def account_transactions(ident)
|
51
|
+
account = ident.is_a?(Openbill::Account) ? ident : get_account(ident)
|
52
|
+
Openbill::Transaction
|
53
|
+
.where('from_account_id = ? or to_account_id = ?', account.id, account.id)
|
54
|
+
end
|
55
|
+
|
50
56
|
# @param key - уникальный текстовый ключ транзакции
|
51
57
|
#
|
52
58
|
def make_transaction(from:, to:, amount:, key:, details: , meta: {})
|
data/lib/openbill/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openbill-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danil Pismenny
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|