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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c558cd0eb1fa8548cbe1f789247e8212eef01751816352f16a5de1d481c8d976
4
- data.tar.gz: 41c21bf3ff0c31642177d5f7cd170a9cf955903a8f451d4f4c6f0a8a281366b9
3
+ metadata.gz: cfbb5f16d08f5d325effaf6e1f63c6b685f994d24205a8dccf7bcc53da3d2cbd
4
+ data.tar.gz: 8c29fc34d18356b8f0890a65976e0351ba2686d64181464729753087d85bd892
5
5
  SHA512:
6
- metadata.gz: 53e587d5ae1e54ce4042d80f1e5a9869cad0a11d47a733322ceeca1f4a727fdbc86a70b9e029a358413d2044a7dc3209c6988230c25bc46f08ef62a60dcf6640
7
- data.tar.gz: 467774ca8f4ea52e0fc23e91a41182d67a162bcc7554083c6824437800bb9f8f9909bfca9ec8752b224aebf75f2b8cad281f5cc0a20959f8e668524c7743d95a
6
+ metadata.gz: 7fd38771757b08b4c5effbbf9c43b3dbdc894478b76f3c8f896d2e4b6152a28045eb32d9641218d33add77ba29d4be81c38bf381c64d088c33cd69c96c9f990b
7
+ data.tar.gz: cd04925aa02ec74f09ac4e50b13ba718b8a5ad1d746914b96c8a18d276985233e8ab791361927eeb4e9eeac9fe89ed9bb624b5a7ca0bfcced090392c072dfaef
@@ -13,9 +13,9 @@ jobs:
13
13
  steps:
14
14
  - uses: actions/checkout@v2
15
15
  - name: Set up Ruby 2.6
16
- uses: actions/setup-ruby@v1
16
+ uses: ruby/setup-ruby@v1
17
17
  with:
18
- ruby-version: 2.6.x
18
+ ruby-version: 2.6
19
19
 
20
20
  - name: Publish to RubyGems
21
21
  run: |
@@ -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
- uses: gimenete/rubocop-action@1.0
12
- env:
13
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26
+ run: bundle exec rubocop
@@ -8,7 +8,7 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
  strategy:
10
10
  matrix:
11
- ruby: [ '2.4.x', '2.5.x', '2.6.x']
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: actions/setup-ruby@v1
25
+ uses: ruby/setup-ruby@v1
26
26
  with:
27
27
  ruby-version: ${{ matrix.ruby }}
28
28
  - run: |
data/.rubocop.yml CHANGED
@@ -40,9 +40,6 @@ Style/TrailingCommaInHashLiteral:
40
40
  Style/TrailingCommaInArguments:
41
41
  EnforcedStyleForMultiline: comma
42
42
 
43
- Layout/ParameterAlignment:
44
- EnforcedStyle: with_fixed_indentation
45
-
46
43
  Layout/EmptyLineAfterMagicComment:
47
44
  Enabled: false
48
45
 
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.0 (2021-05-31)
2
+
3
+ - Add `Bambora::V1::PaymentResource#get` method
4
+
1
5
  ## 0.3.0 (2020-05-27)
2
6
 
3
7
  - Add `Bambora::V1::ProfileResource#update` method
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bambora
4
4
  class Client
5
- VERSION = '0.3.0'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
@@ -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.3.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: 2020-05-28 00:00:00.000000000 Z
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
- rubyforge_project:
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.