orchard-api-client-anm 0.1.7 → 0.1.8

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
  SHA256:
3
- metadata.gz: b01c27aee4d035e7d80aa0883f904191f0ebddef0d2a4ef71edfa75f7be4337d
4
- data.tar.gz: 484ebb1cc3299a5b5b0ff3ea588a556d33a0512f36073d72eee1632002d6c301
3
+ metadata.gz: 686070796aa97295ea62df419a9f3e3f4a40b845e077fadcc9f85e6509ba283e
4
+ data.tar.gz: 7c8021f6dd5d46fc64b088688fdddf0ac1dcaa4db7abbe748c80bc74a435d118
5
5
  SHA512:
6
- metadata.gz: b4e882cc52602b0896650512bdb1b3d77a8dd3f4126b4006e866ced6a38356cc6a584499140d566e230922235aafd5ee2f489fd6a6b64f63724fd0d898505423
7
- data.tar.gz: 9080ddb4ad66e64a7f3d4382556dc9fa3387f4370c40e339dbc87ae29b3d31f534b2498cf3c2499aa4938e2be14460c07a7d575e752200d4cdefd900085002e2
6
+ metadata.gz: 77e46d159082cb8e283582e322212ce55187601f9e40362feeaaa5fb4ea16e584dc9146a479cb97a8eaead4242b3b6fb0403dee341c71aedeced354f5291391a
7
+ data.tar.gz: 9d3fe5871bf92b87fc69362317bf0b676d1f2f6b84f59dcdb2c5e216cd240d1001c1fda6bf4aed6bb5104ac16065545cc66aeeb8ba1e3167d8416ddaf728a82f
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Orchard
4
+ module API
5
+ class CheckWalletBalance < Orchard::API::Base
6
+ def call
7
+ @endpoint = Orchard::API::Constants::CHECK_WALLET_BALANCE
8
+ make_request(:post)
9
+ end
10
+ end
11
+ end
12
+ end
@@ -25,6 +25,10 @@ module Orchard
25
25
  Orchard::API::CheckTransactionStatus.call(payload_with_client_data(payload), request_configurations)
26
26
  end
27
27
 
28
+ def check_wallet_balance(payload, request_configurations = {})
29
+ Orchard::API::CheckWalletBalance.call(payload_with_client_data(payload), request_configurations)
30
+ end
31
+
28
32
  private
29
33
 
30
34
  def create_connection
@@ -7,6 +7,7 @@ module Orchard
7
7
  SEND_SMS_ENDPOINT = "/sendSms"
8
8
  SERVICE_LOOKUP_REQUEST_ENDPOINT = "/get_service_lookup_req"
9
9
  CHECK_TRANSACTION_STATUS_ENDPOINT = "/checkTransaction"
10
+ CHECK_WALLET_BALANCE = "/check_wallet_balance"
10
11
  end
11
12
  end
12
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orchard
4
- VERSION = "0.1.7"
5
- end
4
+ VERSION = "0.1.8"
5
+ end
data/lib/orchard.rb CHANGED
@@ -9,5 +9,6 @@ require_relative "orchard/api/send_payment_request"
9
9
  require_relative "orchard/api/send_sms"
10
10
  require_relative "orchard/api/service_lookup_request"
11
11
  require_relative "orchard/api/check_transaction_status"
12
+ require_relative "orchard/api/check_wallet_balance"
12
13
 
13
14
  require_relative "orchard/api_client"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orchard-api-client-anm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sydney Dapilah
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-26 00:00:00.000000000 Z
11
+ date: 2022-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -85,6 +85,7 @@ files:
85
85
  - lib/orchard.rb
86
86
  - lib/orchard/api/base.rb
87
87
  - lib/orchard/api/check_transaction_status.rb
88
+ - lib/orchard/api/check_wallet_balance.rb
88
89
  - lib/orchard/api/send_payment_request.rb
89
90
  - lib/orchard/api/send_sms.rb
90
91
  - lib/orchard/api/service_lookup_request.rb