buckaroo_client 0.0.1.pre → 0.0.2.pre

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
  SHA1:
3
- metadata.gz: 2911056e32cd71be8234f88bf7dd089fe06adadf
4
- data.tar.gz: cfbec2e5be8084042f248a16bd456aae797d187b
3
+ metadata.gz: 0324f802888c1a0a0219e7923950f10a819ed4bf
4
+ data.tar.gz: d920477e08d8125aa1c221431703ae55df9ef4ca
5
5
  SHA512:
6
- metadata.gz: f5c6d596217c75f66e093138cfe01170f55f2d6a1080a7437a1db9e7856384548cd7726f6900ffe321d10fcec58dab96364889eb065f16ad1571979f14afbd6c
7
- data.tar.gz: 1b1bd2230444f5a8154af5800c92a8a7dc19a27856332f9d280bbd3c3ca4d41581e402ef16ed1194ae768e9bf9ba45555eac5bc8557ff0f4d87eb84595f26561
6
+ metadata.gz: 0307ca5efde632a01d05eb4cb0d1b19bca077383b16fe1a7a5e0815fbb006117946bb940208c4e2801d9e3d39a84730e0cef03f983b5f8db23cbd22ec8a35920
7
+ data.tar.gz: 932151723e044db8b30d1b47a5fba7c1ce74d80987aca1eda9470ee7b3b521fc23a71456cc507fe18d0546fff8b3493c7a81def251b8ea25591628a5c8a24497
@@ -1,3 +1,3 @@
1
1
  module BuckarooClient
2
- VERSION = "0.0.1.pre"
2
+ VERSION = "0.0.2.pre"
3
3
  end
@@ -23,9 +23,9 @@ module BuckarooClient
23
23
  def self.service(name, attributes = {})
24
24
  case name.to_s
25
25
  when 'credit_management'
26
- Service::CreditManagement.new
26
+ Service::CreditManagement.new(attributes)
27
27
  when 'invoice_specification'
28
- Service::InvoiceSpecification.new
28
+ Service::InvoiceSpecification.new(attributes)
29
29
  when 'pay_per_email'
30
30
  Service::PayPerEmail.new(attributes)
31
31
  else
@@ -68,8 +68,8 @@ describe BuckarooClient::Gateway::NVP do
68
68
  "4|Totaal inclusief BTW|€|120.9879||||",
69
69
 
70
70
  "brq_service_creditmanagement_action" => "invoice",
71
- "brq_InvoiceDate" => "2014-11-20",
72
- "brq_DateDue" => "2014-12-04",
71
+ "brq_InvoiceDate" => Date.today.to_s,
72
+ "brq_DateDue" => Date.today.next_day(14).to_s,
73
73
  "brq_AmountVat" => "20.9979",
74
74
  "brq_service_creditmanagement_MaxReminderLevel" => "3",
75
75
  # "brq_service_creditmanagement_PaymentMethodsAllowed" => "",
@@ -0,0 +1,23 @@
1
+ require 'buckaroo_client'
2
+
3
+ describe BuckarooClient do
4
+
5
+ describe '.service' do
6
+ let(:init_args) { {} }
7
+
8
+ it "creates CreditManagement service with given attributes" do
9
+ expect(BuckarooClient::Service::CreditManagement).to receive(:new).with(init_args)
10
+ described_class.service(:credit_management, init_args)
11
+ end
12
+
13
+ it "creates InvoiceSpecification service with given attributes" do
14
+ expect(BuckarooClient::Service::InvoiceSpecification).to receive(:new).with(init_args)
15
+ described_class.service(:invoice_specification, init_args)
16
+ end
17
+
18
+ it "creates PayPerEmail service with given attributes" do
19
+ expect(BuckarooClient::Service::PayPerEmail).to receive(:new).with(init_args)
20
+ described_class.service(:pay_per_email, init_args)
21
+ end
22
+ end
23
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buckaroo_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre
4
+ version: 0.0.2.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Floris Huetink
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-22 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -113,6 +113,7 @@ files:
113
113
  - spec/buckaroo_client/service/invoice_specification_spec.rb
114
114
  - spec/buckaroo_client/service/pay_per_email_spec.rb
115
115
  - spec/buckaroo_client/transaction_spec.rb
116
+ - spec/buckaroo_client_spec.rb
116
117
  - spec/spec_helper.rb
117
118
  homepage: https://github.com/brightin/buckaroo_client
118
119
  licenses:
@@ -134,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
135
  version: 1.3.1
135
136
  requirements: []
136
137
  rubyforge_project:
137
- rubygems_version: 2.4.4
138
+ rubygems_version: 2.4.5
138
139
  signing_key:
139
140
  specification_version: 4
140
141
  summary: Ruby support for Buckaroo Payment Engine 3.0
@@ -145,4 +146,5 @@ test_files:
145
146
  - spec/buckaroo_client/service/invoice_specification_spec.rb
146
147
  - spec/buckaroo_client/service/pay_per_email_spec.rb
147
148
  - spec/buckaroo_client/transaction_spec.rb
149
+ - spec/buckaroo_client_spec.rb
148
150
  - spec/spec_helper.rb