rubill 0.1.3 → 0.1.5
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/lib/rubill/bill_payment.rb +11 -0
- data/lib/rubill/sent_bill_payment.rb +32 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4993af244ded1989c9382b81dbe5bd0d09276cec
|
4
|
+
data.tar.gz: 44571832f6058a9025ac73962cbd2eb415896b40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23038a71ba989fdd8e65690d603bed35b9468cc43c69941441936560dd2c0ff26d8a629f2926a83d0195b26984052f104435efaf1071d5006b9f698b9cecd8b0
|
7
|
+
data.tar.gz: eb45738b6e93ec63191cb30d7c6a8e66a8377cee2d17767f65d31150b2cd9726c3704a582aab49812b6bb2338fca25bdff0c666c23234e654decd24b7e679c04
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Rubill
|
2
|
+
class SentBillPayment < Base
|
3
|
+
def self.create(opts)
|
4
|
+
Query.pay_bills(opts)
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.active
|
8
|
+
where([Query::Filter.new("status", "!=", "4")])
|
9
|
+
end
|
10
|
+
|
11
|
+
def void
|
12
|
+
delete
|
13
|
+
end
|
14
|
+
|
15
|
+
def delete
|
16
|
+
self.class.delete(id)
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.delete(id)
|
20
|
+
# To overwrite delete method in superclass
|
21
|
+
void(id)
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.void(id)
|
25
|
+
Query.void_sent_payment(id)
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.remote_class_name
|
29
|
+
"SentBillPay"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Taber
|
@@ -75,11 +75,13 @@ files:
|
|
75
75
|
- lib/rubill.rb
|
76
76
|
- lib/rubill/base.rb
|
77
77
|
- lib/rubill/bill.rb
|
78
|
+
- lib/rubill/bill_payment.rb
|
78
79
|
- lib/rubill/customer.rb
|
79
80
|
- lib/rubill/customer_contact.rb
|
80
81
|
- lib/rubill/invoice.rb
|
81
82
|
- lib/rubill/query.rb
|
82
83
|
- lib/rubill/received_payment.rb
|
84
|
+
- lib/rubill/sent_bill_payment.rb
|
83
85
|
- lib/rubill/sent_payment.rb
|
84
86
|
- lib/rubill/session.rb
|
85
87
|
- lib/rubill/vendor.rb
|