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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/lib/bckbn/configuration.rb +1 -1
- data/lib/bckbn/connection.rb +1 -1
- data/lib/bckbn/resources/{transaction → transactions}/api.rb +8 -8
- data/lib/bckbn/version.rb +1 -1
- data/lib/bckbn.rb +8 -8
- metadata +10 -10
- /data/lib/bckbn/resources/{transaction → transactions}/models/billing_address.rb +0 -0
- /data/lib/bckbn/resources/{transaction → transactions}/models/card.rb +0 -0
- /data/lib/bckbn/resources/{transaction → transactions}/models/cardholder_authentication.rb +0 -0
- /data/lib/bckbn/resources/{transaction → transactions}/models/echeck.rb +0 -0
- /data/lib/bckbn/resources/{transaction → transactions}/models/payment.rb +0 -0
- /data/lib/bckbn/resources/{transaction → transactions}/models/requests.rb +0 -0
- /data/lib/bckbn/resources/{transaction → transactions}/models/responses.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fa4792a049872ba76ad8edce63797201a12920c8d0087d76b3dbeb86397ff37
|
4
|
+
data.tar.gz: 790b83ef726a30b5027ab38eea45e0c08118e8b5e316b6f8c9096e524fbe884d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e41821845adf302bc2ea737f5ed78574b78d8766b3bba3481ee4c5016e60264a53b3d0aba33b46fcc5ebdd547b811131b66a9daf570fe6c1f87454f5846a47e
|
7
|
+
data.tar.gz: c7a55d28388b25e539c9de76d1d14c8a509a9f476641a90561af3b4597a7079a69fd02819fcbc1dd3b9a6cc859f53f9b78a093221d600f08418896e97c70e7ef
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -20,7 +20,7 @@ require "bckbn"
|
|
20
20
|
|
21
21
|
Bckbn.api_base = "..."
|
22
22
|
Bckbn.access_token = "..."
|
23
|
-
Bckbn.
|
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
|
-
|
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
|
-
|
51
|
+
worldpay_merchant_id: worldpay_merchant_id,
|
52
52
|
idempotency_key: idempotency_key
|
53
53
|
}
|
54
54
|
)
|
data/lib/bckbn/configuration.rb
CHANGED
data/lib/bckbn/connection.rb
CHANGED
@@ -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.
|
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: "/
|
7
|
-
capture: "/
|
8
|
-
credit: "/
|
9
|
-
sale: "/
|
10
|
-
void: "/
|
11
|
-
echeck_credit: "/
|
12
|
-
echeck_sale: "/
|
13
|
-
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
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/
|
13
|
-
require "bckbn/resources/
|
14
|
-
require "bckbn/resources/
|
15
|
-
require "bckbn/resources/
|
16
|
-
require "bckbn/resources/
|
17
|
-
require "bckbn/resources/
|
18
|
-
require "bckbn/resources/
|
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, :
|
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:
|
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-
|
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/
|
121
|
-
- lib/bckbn/resources/
|
122
|
-
- lib/bckbn/resources/
|
123
|
-
- lib/bckbn/resources/
|
124
|
-
- lib/bckbn/resources/
|
125
|
-
- lib/bckbn/resources/
|
126
|
-
- lib/bckbn/resources/
|
127
|
-
- lib/bckbn/resources/
|
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:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|