bckbn 2.2.1 → 3.0.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: 37a10557782376798c380251fe6ad06d2edd810f6b82a71367ab8467a79514e6
4
- data.tar.gz: 7acf9a2c8d491d29e613db118ca1ab437c3111f314cac75cd0d021ee7ff48129
3
+ metadata.gz: b29620743a992dbae744097543537e4b165ec0fd41f4d4f42d7bb26b90b96bd6
4
+ data.tar.gz: 1d76d4b980d2470b902d7056bf43ddb36d213b0e0702f0f6a43c17b7463e3a11
5
5
  SHA512:
6
- metadata.gz: 9dd0e439fccb97dd31ad7d4132ad571e600b8102b3c6527c2fed250472ddafab7acebe8bcc61dbd22a194336579ecc0dd38a21f7040c5bdabc7417b5e310bec0
7
- data.tar.gz: 1654134a8a063c8178ccad2b33872972d6d9d3290b1aecf81d6b0ed4762c51ea326309a2df5a37b16f4329fb0b11e142741151d032d5f4acc862dc1b3c0fb257
6
+ metadata.gz: f83c6a4af4dcb967b86ddad8763622c30736ea7f882161f3cfe194e21d2c0630903b39b621923277cfb25b78da37809611e67f1281d6e9e2401571db57ea10b7
7
+ data.tar.gz: 05dd64aaca218e3d786ab0b86433e7b443d5c0860d1171ffb4b03d59ad94df27587408460f545f2428ee41a7f400e9b8d5467921bd6112a534e9c6276dd629d8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bckbn (2.2.1)
4
+ bckbn (3.0.0)
5
5
  addressable (~> 2.8.5)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -20,7 +20,7 @@ require "bckbn"
20
20
 
21
21
  Bckbn.api_base = "..."
22
22
  Bckbn.access_token = "..."
23
- Bckbn.merchant_id = "..."
23
+ Bckbn.worldpay_merchant_id = "..."
24
24
 
25
25
  Bckbn::Transaction.capture({
26
26
  litle_txn_id: "13254123434",
@@ -36,7 +36,7 @@ require "bckbn"
36
36
 
37
37
  api_base = "..."
38
38
  access_token = "..."
39
- merchant_id = "..."
39
+ worldpay_merchant_id = "..."
40
40
  idempotency_key = "..."
41
41
 
42
42
  Bckbn::Transaction.capture(
@@ -48,7 +48,7 @@ Bckbn::Transaction.capture(
48
48
  {
49
49
  api_base: api_base,
50
50
  access_token: access_token,
51
- merchant_id: merchant_id,
51
+ worldpay_merchant_id: worldpay_merchant_id,
52
52
  idempotency_key: idempotency_key
53
53
  }
54
54
  )
@@ -7,7 +7,7 @@ module Bckbn
7
7
  api_version
8
8
  api_base
9
9
  log_level
10
- merchant_id
10
+ worldpay_merchant_id
11
11
  source_ip_address
12
12
  idempotency_key
13
13
  ].freeze
@@ -116,7 +116,7 @@ module Bckbn
116
116
  "Content-Type" => "application/json",
117
117
  "Authorization" => "Bearer #{config.access_token}",
118
118
  "X-Api-Version" => config.api_version,
119
- "X-Merchant-Id" => config.merchant_id,
119
+ "X-Worldpay-Merchant-Id" => config.worldpay_merchant_id,
120
120
  "X-Source-Ip-Address" => config.source_ip_address,
121
121
  "X-Idempotency-Key" => config.idempotency_key
122
122
  }
data/lib/bckbn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bckbn
4
- VERSION = "2.2.1"
4
+ VERSION = "3.0.0"
5
5
  end
data/lib/bckbn.rb CHANGED
@@ -33,7 +33,7 @@ module Bckbn
33
33
  def_delegators :@config, :api_version, :api_version=
34
34
  def_delegators :@config, :api_base, :api_base=
35
35
  def_delegators :@config, :log_level, :log_level=
36
- def_delegators :@config, :merchant_id, :merchant_id=
36
+ def_delegators :@config, :worldpay_merchant_id, :worldpay_merchant_id=
37
37
  def_delegators :@config, :source_ip_address, :source_ip_address=
38
38
  end
39
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bckbn
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nikkypx
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-25 00:00:00.000000000 Z
11
+ date: 2024-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable