bills-payment 0.0.6 → 0.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57c843e7b480b8768f72350747060aa0e6bed4d1360a7aa9c605985c4dae3716
4
- data.tar.gz: 6ddffc6ddce310ddb862d20c47562bd01f4fa05e7974497b98ea242dda33ff42
3
+ metadata.gz: fbdada38587d255bb81a48790b34f8d9fa5ee000f5c6f44114c7bca37688b111
4
+ data.tar.gz: fa5a23da66731aaa499c3e6ea49590eaba0325379ed5804927453ea011a0c1f8
5
5
  SHA512:
6
- metadata.gz: 5e80ab14b546f7c3fa6aadfea14e67ad14a8fd5d8e9219fc48b6a4fd6e181608d93565525c3e1d23d8fba30d8ff7dd6543f7da8e541bf9a2b9e5a3a3eebabf67
7
- data.tar.gz: 1d667e490f1d8343776f1771b201ae499d083555e0191934d74e6713362fbd5b0f7b381907cb84ab084a29def64cb9554cdfb9c36d8589a7335b430e51071593
6
+ metadata.gz: 229999c033e8d6b6d24d30ba189c108e9821f53a25bfc4ce13e4e6e3d004462b47bc2c8d33e05f4e95c7d8e395a4098d18b26ee0be4fca67928250578868b624
7
+ data.tar.gz: a99f925cb83fd51c73ad42a72e19d7cd6da7a708461e7313c88f506f9c3bfa5db09defd0089cfde500f36caddc025dee9a4ce68db43524608ce240f8563669a2
@@ -5,18 +5,24 @@ module BillsPayment
5
5
 
6
6
  def load_category
7
7
  api_url = "#{api_url}/categories"
8
- response = BillsPayment.request(api_url, :post)
8
+ # response = BillsPayment.request(api_url, :post)
9
+ response = RestClient.post 'http://14.98.171.134:9090/billspayment/bill/categories'
10
+ response = JSON.parse(response.body)
9
11
  end
10
12
 
11
13
  def load_billers(id)
12
14
  api_url = "#{api_url}/getbillers/#{id}"
13
- response = BillsPayment.request(api_url, :post)
15
+ # response = BillsPayment.request(api_url, :post)
16
+ response = RestClient.post "http://14.98.171.134:9090/billspayment/bill/getbillers/#{id}"
17
+ response = JSON.parse(response.body)
14
18
  end
15
19
 
16
20
  # params - id, customerRef, billerId, narration, accountNumber, paymentDate
17
21
  def do_payment(payment_data)
18
22
  api_url = "#{self.api_url}/dopayment"
19
- response = BillsPayment.request(api_url, :post, payment_data)
23
+ # response = BillsPayment.request(api_url, :post, payment_data)
24
+ response = RestClient.post "http://14.98.171.134:9090/billspayment/bill/dopayment", payment_data
25
+ response = JSON.parse(response.body)
20
26
  end
21
27
 
22
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bills-payment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sahu Minaketana