bambora-client 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gempush.yml +2 -2
- data/.github/workflows/linter.yml +16 -3
- data/.github/workflows/ruby.yml +2 -2
- data/.rubocop.yml +0 -3
- data/CHANGELOG.md +4 -0
- data/lib/bambora/client/version.rb +1 -1
- data/lib/bambora/v1/payment_resource.rb +16 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfbb5f16d08f5d325effaf6e1f63c6b685f994d24205a8dccf7bcc53da3d2cbd
|
4
|
+
data.tar.gz: 8c29fc34d18356b8f0890a65976e0351ba2686d64181464729753087d85bd892
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fd38771757b08b4c5effbbf9c43b3dbdc894478b76f3c8f896d2e4b6152a28045eb32d9641218d33add77ba29d4be81c38bf381c64d088c33cd69c96c9f990b
|
7
|
+
data.tar.gz: cd04925aa02ec74f09ac4e50b13ba718b8a5ad1d746914b96c8a18d276985233e8ab791361927eeb4e9eeac9fe89ed9bb624b5a7ca0bfcced090392c072dfaef
|
@@ -7,7 +7,20 @@ jobs:
|
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
steps:
|
9
9
|
- uses: actions/checkout@v2
|
10
|
+
with:
|
11
|
+
ref: ${{ github.ref }}
|
12
|
+
- name: Cache Gems
|
13
|
+
uses: actions/cache@v1
|
14
|
+
with:
|
15
|
+
path: vendor/bundle
|
16
|
+
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
|
17
|
+
restore-keys: |
|
18
|
+
${{ runner.os }}-gem-
|
19
|
+
- name: Setup ruby
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
|
+
- run: |
|
22
|
+
gem install bundler
|
23
|
+
bundle config path vendor/bundle
|
24
|
+
bundle install --jobs 4 --retry 3
|
10
25
|
- name: Rubocop checks
|
11
|
-
|
12
|
-
env:
|
13
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
26
|
+
run: bundle exec rubocop
|
data/.github/workflows/ruby.yml
CHANGED
@@ -8,7 +8,7 @@ jobs:
|
|
8
8
|
runs-on: ubuntu-latest
|
9
9
|
strategy:
|
10
10
|
matrix:
|
11
|
-
ruby: [
|
11
|
+
ruby: ['2.4', '2.5', '2.6']
|
12
12
|
name: Ruby ${{ matrix.ruby }} Test
|
13
13
|
steps:
|
14
14
|
- uses: actions/checkout@master
|
@@ -22,7 +22,7 @@ jobs:
|
|
22
22
|
restore-keys: |
|
23
23
|
${{ runner.os }}-gem-
|
24
24
|
- name: Setup ruby
|
25
|
-
uses:
|
25
|
+
uses: ruby/setup-ruby@v1
|
26
26
|
with:
|
27
27
|
ruby-version: ${{ matrix.ruby }}
|
28
28
|
- run: |
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -77,6 +77,22 @@ module Bambora
|
|
77
77
|
end
|
78
78
|
|
79
79
|
alias make_payment_with_payment_profile create_with_payment_profile
|
80
|
+
|
81
|
+
# Retrieve the details of a previously attempted payment.
|
82
|
+
#
|
83
|
+
#
|
84
|
+
# @example
|
85
|
+
#
|
86
|
+
# client = Bambora::Rest::JSONClient(base_url: '...', api_key: '...', merchant_id: '...')
|
87
|
+
# payments = Bambora::V1::PaymentResource(client: client)
|
88
|
+
# payments.get(transaction_id: 1000341)
|
89
|
+
#
|
90
|
+
# @param transaction_id [Integer] An integer identifier for the associated transaction.
|
91
|
+
#
|
92
|
+
# @return [Hash] Transaction details.
|
93
|
+
def get(transaction_id:)
|
94
|
+
client.get(path: "#{sub_path}/#{transaction_id}", api_key: api_key)
|
95
|
+
end
|
80
96
|
end
|
81
97
|
end
|
82
98
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bambora-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cassidy K
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -250,8 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
250
|
- !ruby/object:Gem::Version
|
251
251
|
version: '0'
|
252
252
|
requirements: []
|
253
|
-
|
254
|
-
rubygems_version: 2.7.6.2
|
253
|
+
rubygems_version: 3.0.3.1
|
255
254
|
signing_key:
|
256
255
|
specification_version: 4
|
257
256
|
summary: A thread-safe client for the Bambora/Beanstream API.
|