killbill-currency-plugin-test 1.1.1 → 1.1.2
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/Jarfile +7 -5
- data/VERSION +1 -1
- data/lib/currency_plugin_test/api.rb +4 -20
- data/pom.xml +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77bc16bd2fee96e70dc692159d9db903c2d2fd8b
|
4
|
+
data.tar.gz: f4c01691df64e73f96160e696505fd8e7695e146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 820712abe7e5eb52c5694541de26603670a964415924040b40e2f617e6f024b36c6a91d28f2f7fd22d818545bd9fe468492c4bbcd9df39c6c3857a21a2c7e96e
|
7
|
+
data.tar.gz: 2e03c2ccece4f73e2dccab4da9aaf9668848d3fd0d622c22fae10ed657564398235b01fafd62798dacc4374181403a99c11f8071911ac7b4f24f8527187bd99b
|
data/Jarfile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
jar 'org.kill-bill.billing:killbill-api', '0.9.
|
2
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.7.
|
3
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.7.
|
4
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.7.
|
5
|
-
jar 'org.kill-bill.billing:killbill-
|
1
|
+
jar 'org.kill-bill.billing:killbill-api', '0.9.6'
|
2
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.7.4'
|
3
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.7.4'
|
4
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.7.4'
|
5
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-retry', '0.7.4'
|
6
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.7.4'
|
7
|
+
jar 'org.kill-bill.billing:killbill-util:tests', '0.11.3'
|
6
8
|
jar 'javax.servlet:javax.servlet-api', '3.0.1'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
@@ -6,20 +6,6 @@ module Killbill
|
|
6
6
|
module CurrencyPlugin
|
7
7
|
class TestPlugin < Killbill::Plugin::Currency
|
8
8
|
|
9
|
-
def initialize()
|
10
|
-
@raise_exception = false
|
11
|
-
super()
|
12
|
-
end
|
13
|
-
|
14
|
-
|
15
|
-
def start_plugin
|
16
|
-
super
|
17
|
-
end
|
18
|
-
|
19
|
-
# return DB connections to the Pool if required
|
20
|
-
def after_request
|
21
|
-
end
|
22
|
-
|
23
9
|
def get_base_currencies(options = {})
|
24
10
|
['USD']
|
25
11
|
end
|
@@ -33,11 +19,10 @@ module Killbill
|
|
33
19
|
end
|
34
20
|
|
35
21
|
def get_current_rates(base_currency, options = {})
|
36
|
-
|
37
|
-
rate
|
38
|
-
rate.
|
39
|
-
rate.
|
40
|
-
rate.value = 12.3
|
22
|
+
rate = Killbill::Plugin::Model::Rate.new
|
23
|
+
rate.base_currency = base_currency
|
24
|
+
rate.currency = 'BRL'
|
25
|
+
rate.value = 12.3
|
41
26
|
rate.conversion_date = Time.now.utc
|
42
27
|
[rate]
|
43
28
|
end
|
@@ -45,7 +30,6 @@ module Killbill
|
|
45
30
|
def get_rates(base_currency, conversion_date, options = {})
|
46
31
|
get_current_rates(base_currency, options)
|
47
32
|
end
|
48
|
-
|
49
33
|
end
|
50
34
|
end
|
51
35
|
end
|
data/pom.xml
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<!--
|
3
3
|
~ Copyright 2010-2013 Ning, Inc.
|
4
|
+
~ Copyright 2014 Groupon, Inc
|
5
|
+
~ Copyright 2014 The Billing Project, LLC
|
4
6
|
~
|
5
7
|
~ Ning licenses this file to you under the Apache License, version 2.0
|
6
8
|
~ (the "License"); you may not use this file except in compliance with the
|
@@ -25,7 +27,7 @@
|
|
25
27
|
<groupId>org.kill-bill.ruby</groupId>
|
26
28
|
<artifactId>killbill-currency-plugin-test</artifactId>
|
27
29
|
<packaging>pom</packaging>
|
28
|
-
<version>1.1.
|
30
|
+
<version>1.1.2</version>
|
29
31
|
<name>killbill-currency-plugin-test</name>
|
30
32
|
<description></description>
|
31
33
|
<scm>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-currency-plugin-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kill Bill core team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: killbill
|
@@ -16,12 +16,12 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.1.
|
19
|
+
version: 3.1.4
|
20
20
|
requirement: !ruby/object:Gem::Requirement
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 3.1.
|
24
|
+
version: 3.1.4
|
25
25
|
prerelease: false
|
26
26
|
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|