kount-ris 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/kount.rb +1 -26
- data/app/models/kount/configuration.rb +27 -0
- data/lib/kount/ris/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c359f34868cfb7866aee61b3dacfe6ecf4997686
|
|
4
|
+
data.tar.gz: 0e039bce16c35192f365bbd4fd1279a6ec1228cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79d10e718a74f36dd65e7d90af5cac5d2dce313e7ed73389cd7e8efd07e0b1fb28d1a39a4a0b2bc5bcb409aa13986a18440459d7a814d7c3215eb4d002fae849
|
|
7
|
+
data.tar.gz: 704faa22fa002509f18fb1c1d90b11a1a3e60a6f8bc6e476449d91f5fbc0165a5a421ab6e8598106f70c772a0195d205d26da365cd59ae01de49f84d6a9588f4
|
data/app/models/kount.rb
CHANGED
|
@@ -1,28 +1,3 @@
|
|
|
1
1
|
module Kount
|
|
2
|
-
|
|
3
|
-
def configure(conf={})
|
|
4
|
-
Configuration.set(conf)
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
def configuration
|
|
8
|
-
{
|
|
9
|
-
merchant_id: Kount::Configuration.merchant_id,
|
|
10
|
-
company_server_url: Kount::Configuration.company_server_url,
|
|
11
|
-
api_key: Kount::Configuration.api_key,
|
|
12
|
-
gateway_id: Kount::Configuration.gateway_id,
|
|
13
|
-
site_id: Kount::Configuration.site_id,
|
|
14
|
-
api_version: Kount::Configuration.api_version || '0630',
|
|
15
|
-
response_format: Kount::Configuration.response_format,
|
|
16
|
-
payment_type: Kount::Configuration.payment_type,
|
|
17
|
-
currency_code: Kount::Configuration.currency_code,
|
|
18
|
-
shipping_method: Kount::Configuration.shipping_method,
|
|
19
|
-
logger: Kount::Configuration.logger,
|
|
20
|
-
simple_log_level: Kount::Configuration.simple_log_level,
|
|
21
|
-
simple_log_file: Kount::Configuration.simple_log_file,
|
|
22
|
-
simple_log_path: Kount::Configuration.simple_log_path,
|
|
23
|
-
salt: Kount::Configuration.salt,
|
|
24
|
-
api_host: Kount::Configuration.api_host,
|
|
25
|
-
}.compact
|
|
26
|
-
end
|
|
27
|
-
end
|
|
2
|
+
|
|
28
3
|
end
|
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
module Kount
|
|
2
|
+
class << self
|
|
3
|
+
def configure(conf={})
|
|
4
|
+
Configuration.set(conf)
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
def configuration
|
|
8
|
+
{
|
|
9
|
+
merchant_id: Kount::Configuration.merchant_id,
|
|
10
|
+
company_server_url: Kount::Configuration.company_server_url,
|
|
11
|
+
api_key: Kount::Configuration.api_key,
|
|
12
|
+
gateway_id: Kount::Configuration.gateway_id,
|
|
13
|
+
site_id: Kount::Configuration.site_id,
|
|
14
|
+
api_version: Kount::Configuration.api_version || '0630',
|
|
15
|
+
response_format: Kount::Configuration.response_format,
|
|
16
|
+
payment_type: Kount::Configuration.payment_type,
|
|
17
|
+
currency_code: Kount::Configuration.currency_code,
|
|
18
|
+
shipping_method: Kount::Configuration.shipping_method,
|
|
19
|
+
logger: Kount::Configuration.logger,
|
|
20
|
+
simple_log_level: Kount::Configuration.simple_log_level,
|
|
21
|
+
simple_log_file: Kount::Configuration.simple_log_file,
|
|
22
|
+
simple_log_path: Kount::Configuration.simple_log_path,
|
|
23
|
+
salt: Kount::Configuration.salt,
|
|
24
|
+
api_host: Kount::Configuration.api_host,
|
|
25
|
+
}.compact
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
2
29
|
class Configuration
|
|
3
30
|
class << self
|
|
4
31
|
attr_accessor :merchant_id, :company_server_url, :api_key, :gateway_id, :site_id, :salt, :api_host
|
data/lib/kount/ris/version.rb
CHANGED