bckbn 2.2.1 → 3.0.1

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: 4fa4792a049872ba76ad8edce63797201a12920c8d0087d76b3dbeb86397ff37
4
+ data.tar.gz: 790b83ef726a30b5027ab38eea45e0c08118e8b5e316b6f8c9096e524fbe884d
5
5
  SHA512:
6
- metadata.gz: 9dd0e439fccb97dd31ad7d4132ad571e600b8102b3c6527c2fed250472ddafab7acebe8bcc61dbd22a194336579ecc0dd38a21f7040c5bdabc7417b5e310bec0
7
- data.tar.gz: 1654134a8a063c8178ccad2b33872972d6d9d3290b1aecf81d6b0ed4762c51ea326309a2df5a37b16f4329fb0b11e142741151d032d5f4acc862dc1b3c0fb257
6
+ metadata.gz: 1e41821845adf302bc2ea737f5ed78574b78d8766b3bba3481ee4c5016e60264a53b3d0aba33b46fcc5ebdd547b811131b66a9daf570fe6c1f87454f5846a47e
7
+ data.tar.gz: c7a55d28388b25e539c9de76d1d14c8a509a9f476641a90561af3b4597a7079a69fd02819fcbc1dd3b9a6cc859f53f9b78a093221d600f08418896e97c70e7ef
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.1)
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
  }
@@ -3,14 +3,14 @@
3
3
  module Bckbn
4
4
  module Transaction
5
5
  ENDPOINTS = {
6
- authorization: "/transaction/authorization",
7
- capture: "/transaction/capture",
8
- credit: "/transaction/credit",
9
- sale: "/transaction/sale",
10
- void: "/transaction/void",
11
- echeck_credit: "/transaction/echeck_credit",
12
- echeck_sale: "/transaction/echeck_sale",
13
- echeck_void: "/transaction/echeck_void"
6
+ authorization: "/transactions/authorization",
7
+ capture: "/transactions/capture",
8
+ credit: "/transactions/credit",
9
+ sale: "/transactions/sale",
10
+ void: "/transactions/void",
11
+ echeck_credit: "/transactions/echeck_credit",
12
+ echeck_sale: "/transactions/echeck_sale",
13
+ echeck_void: "/transactions/echeck_void"
14
14
  }.freeze
15
15
  private_constant :ENDPOINTS
16
16
 
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.1"
5
5
  end
data/lib/bckbn.rb CHANGED
@@ -9,13 +9,13 @@ require "bckbn/version"
9
9
  require "bckbn/configuration"
10
10
  require "bckbn/core_ext"
11
11
  require "bckbn/connection"
12
- require "bckbn/resources/transaction/api"
13
- require "bckbn/resources/transaction/models/card"
14
- require "bckbn/resources/transaction/models/echeck"
15
- require "bckbn/resources/transaction/models/billing_address"
16
- require "bckbn/resources/transaction/models/requests"
17
- require "bckbn/resources/transaction/models/responses"
18
- require "bckbn/resources/transaction/models/payment"
12
+ require "bckbn/resources/transactions/api"
13
+ require "bckbn/resources/transactions/models/card"
14
+ require "bckbn/resources/transactions/models/echeck"
15
+ require "bckbn/resources/transactions/models/billing_address"
16
+ require "bckbn/resources/transactions/models/requests"
17
+ require "bckbn/resources/transactions/models/responses"
18
+ require "bckbn/resources/transactions/models/payment"
19
19
 
20
20
  require "bckbn/resources/charge/api"
21
21
  require "bckbn/resources/charge/models/requests"
@@ -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.1
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-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -117,14 +117,14 @@ files:
117
117
  - lib/bckbn/resources/charge/api.rb
118
118
  - lib/bckbn/resources/charge/models/requests.rb
119
119
  - lib/bckbn/resources/charge/models/responses.rb
120
- - lib/bckbn/resources/transaction/api.rb
121
- - lib/bckbn/resources/transaction/models/billing_address.rb
122
- - lib/bckbn/resources/transaction/models/card.rb
123
- - lib/bckbn/resources/transaction/models/cardholder_authentication.rb
124
- - lib/bckbn/resources/transaction/models/echeck.rb
125
- - lib/bckbn/resources/transaction/models/payment.rb
126
- - lib/bckbn/resources/transaction/models/requests.rb
127
- - lib/bckbn/resources/transaction/models/responses.rb
120
+ - lib/bckbn/resources/transactions/api.rb
121
+ - lib/bckbn/resources/transactions/models/billing_address.rb
122
+ - lib/bckbn/resources/transactions/models/card.rb
123
+ - lib/bckbn/resources/transactions/models/cardholder_authentication.rb
124
+ - lib/bckbn/resources/transactions/models/echeck.rb
125
+ - lib/bckbn/resources/transactions/models/payment.rb
126
+ - lib/bckbn/resources/transactions/models/requests.rb
127
+ - lib/bckbn/resources/transactions/models/responses.rb
128
128
  - lib/bckbn/version.rb
129
129
  homepage: https://github.com/anedot/bckbn-ruby
130
130
  licenses: