rubill 0.1.3 → 0.1.5

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: 73e0f8b9f6b2a6914621ebbf84f1c3657c24e5e9
4
- data.tar.gz: 54d9a0e0a16bc622d88da741d84532b3c1727f59
3
+ metadata.gz: 4993af244ded1989c9382b81dbe5bd0d09276cec
4
+ data.tar.gz: 44571832f6058a9025ac73962cbd2eb415896b40
5
5
  SHA512:
6
- metadata.gz: af4eb9c820140d62acd6ee9ad87f6f5787ff5d6eaf7f5752d758a6ba42fdd22bf7bc1bbfffc7b4a7f145b6d8ee9ecd26313a36c14038f87b1b14c67c5d92365b
7
- data.tar.gz: d552dffa72602e2cb11d71c5b149fbfff3ab1a584103b5353adbbfeb427cfa9b0445ae74ba96fc9e797658428c5cbbd0f2832c0cda96a8acef7b1073e812d8af
6
+ metadata.gz: 23038a71ba989fdd8e65690d603bed35b9468cc43c69941441936560dd2c0ff26d8a629f2926a83d0195b26984052f104435efaf1071d5006b9f698b9cecd8b0
7
+ data.tar.gz: eb45738b6e93ec63191cb30d7c6a8e66a8377cee2d17767f65d31150b2cd9726c3704a582aab49812b6bb2338fca25bdff0c666c23234e654decd24b7e679c04
@@ -0,0 +1,11 @@
1
+ module Rubill
2
+ class BillPayment < Base
3
+ def self.pay_bills(opts)
4
+ SentBillPayment.create(opts)
5
+ end
6
+
7
+ def self.remote_class_name
8
+ "BillPayment"
9
+ end
10
+ end
11
+ end
@@ -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.3
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