mollie-payment 0.0.1 → 0.0.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.
data/README.md CHANGED
@@ -1,23 +1,16 @@
1
1
  Mollie Payment
2
2
  ========
3
3
 
4
- This repository is currently an act of [Readme Driven Development](http://tom.preston-werner.com/2010/08/23/readme-driven-development.html); an empty box with no implementation, only an interface.
4
+ This repository is currently under [Readme Driven Development](http://tom.preston-werner.com/2010/08/23/readme-driven-development.html); an empty box with no implementation, only a documented interface.
5
5
 
6
- Methods are documented using [Tomdoc](http://tomdoc.org/).
6
+ Documentation uses the [Tomdoc](http://tomdoc.org/) specification. The generated docs can be [found here](http://rubydoc.info/gems/mollie-payment/0.0.2/frames).
7
7
 
8
- Requirements
8
+ Develop
9
9
  ------------
10
-
11
- Installation
12
- ------------
13
-
14
- $ gem install mollie-payment
15
10
 
16
-
17
- Usage
18
- ------------
19
-
20
- Please check out the documentation.
11
+ $ git clone git://github.com/eval/mollie-payment.git
12
+ $ cd mollie-payment
13
+ $ bundle
21
14
 
22
15
  Author
23
16
  ------
@@ -1,5 +1,17 @@
1
1
  module Mollie
2
2
  class Ideal
3
+ # Public: Initialize Ideal
4
+ #
5
+ # partner_id - String your Mollie partner id
6
+ # options - Hash options:
7
+ # :test - Boolean use testmode? (default: true)
8
+ #
9
+ # Examples
10
+ #
11
+ # mi = Mollie::Ideal.new('123456', :test => false)
12
+ #
13
+ def initialize(partner_id, options={:test => true});end
14
+
3
15
  # Public: All supported banks.
4
16
  #
5
17
  # Examples
@@ -8,10 +20,10 @@ module Mollie
8
20
  # # => [{:id => '0031', :name => 'ABN AMRO'}, ...]
9
21
  #
10
22
  # Returns an Array of Hash representing banks (keys: String id,
11
- # String name).
23
+ # String name).
12
24
  def self.banklist;end
13
- class << self
14
- alias :banks :banklist
25
+ def self.banks
26
+ banklist
15
27
  end
16
28
 
17
29
  def banklist
@@ -19,7 +31,7 @@ module Mollie
19
31
  end
20
32
  alias :banks :banklist
21
33
 
22
- # Public: Request a payment.
34
+ # Public: Request a transaction.
23
35
  #
24
36
  # options - Hash options:
25
37
  # :amount - Fixnum the amount *in cents*
@@ -34,7 +46,7 @@ module Mollie
34
46
  #
35
47
  # Examples
36
48
  #
37
- # mi = Mollie::Ideal.new(12345)
49
+ # mi = Mollie::Ideal.new('12345')
38
50
  # mi.fetch(:amount => 1465, :bank_id => '0721',
39
51
  # :description => "Charlie Brown's Tree",
40
52
  # :report_url => 'http://example.org/report',
@@ -47,7 +59,7 @@ module Mollie
47
59
  # }
48
60
  #
49
61
  # Returns a Hash representing the transaction (keys: Fixnum amount,
50
- # String currency, String transaction_id, String url).
62
+ # String currency, String transaction_id, String url).
51
63
  def fetch(options);end
52
64
 
53
65
  # Public: Verify the status of a transaction.
@@ -57,7 +69,7 @@ module Mollie
57
69
  #
58
70
  # Examples
59
71
  #
60
- # mi = Mollie::Ideal.new(12345)
72
+ # mi = Mollie::Ideal.new('12345')
61
73
  # mi.check(:transaction_id => '12345')
62
74
  # # => {
63
75
  # :transaction_id => '482d599bbcc7795727650330ad65fe9b',
@@ -76,5 +88,6 @@ module Mollie
76
88
  #
77
89
  # Returns A Hash representing the result of the transaction (see Examples).
78
90
  def check(options);end
91
+
79
92
  end
80
93
  end
@@ -1,5 +1,5 @@
1
1
  module Mollie
2
2
  class Ideal
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Mollie::Ideal::VERSION
8
8
  s.authors = ["Gert Goet"]
9
9
  s.email = ["gert@thinkcreate.nl"]
10
- s.homepage = ""
10
+ s.homepage = "https://github.com/eval/mollie-payment"
11
11
  s.summary = %q{WIP}
12
12
  s.description = %q{WIP}
13
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mollie-payment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-12 00:00:00.000000000Z
12
+ date: 2011-10-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: tomdoc
16
- requirement: &70321337106080 !ruby/object:Gem::Requirement
16
+ requirement: &70290978503740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70321337106080
24
+ version_requirements: *70290978503740
25
25
  description: WIP
26
26
  email:
27
27
  - gert@thinkcreate.nl
@@ -33,12 +33,11 @@ files:
33
33
  - Gemfile
34
34
  - README.md
35
35
  - Rakefile
36
- - index.html
37
36
  - lib/mollie-ideal.rb
38
37
  - lib/mollie/ideal.rb
39
38
  - lib/mollie/ideal/version.rb
40
39
  - mollie-ideal.gemspec
41
- homepage: ''
40
+ homepage: https://github.com/eval/mollie-payment
42
41
  licenses: []
43
42
  post_install_message:
44
43
  rdoc_options: []
data/index.html DELETED
@@ -1,64 +0,0 @@
1
- <ul>
2
- </ul>
3
- <ul><li><b>Mollie::Ideal.banklist</b><pre>Public: All supported banks.
4
-
5
- Examples
6
-
7
- Mollie::Ideal.banklist
8
- # => [{:id => '0031', :name => 'ABN AMRO'}, ...]
9
-
10
- Returns an Array of Hash representing banks (keys: String id,
11
- String name).</pre></li>
12
- <li><b>Mollie::Ideal#fetch(options)</b><pre>Public: Request a payment.
13
-
14
- options - Hash options:
15
- :amount - Fixnum the amount *in cents*
16
- :bank_id - String id of the bank
17
- :description - String description of the transaction (max. 30
18
- characters)
19
- :report_url - String url where the result of the transaction
20
- is sent
21
- :return_url - String url where the visitor is sent
22
- :profile_key - String profile this transaction should be linked
23
- to (default: nil)
24
-
25
- Examples
26
-
27
- mi = Mollie::Ideal.new(12345)
28
- mi.fetch(:amount => 1465, :bank_id => '0721',
29
- :description => "Charlie Brown's Tree",
30
- :report_url => 'http://example.org/report',
31
- :return_url => 'http://example.org/return')
32
- # => {
33
- :transaction_id => '482d599bbcc7795727650330ad65fe9b',
34
- :amount => 1465,
35
- :currency => 'EUR',
36
- :url => 'https://mijn.postbank.nl/...',
37
- }
38
-
39
- Returns a Hash representing the transaction (keys: Fixnum amount,
40
- String currency, String transaction_id, String url).</pre></li><li><b>Mollie::Ideal#check(options)</b><pre>Public: Verify the status of a transaction.
41
-
42
- options - Hash options:
43
- :transaction_id - String id of the transaction
44
-
45
- Examples
46
-
47
- mi = Mollie::Ideal.new(12345)
48
- mi.check(:transaction_id => '12345')
49
- # => {
50
- :transaction_id => '482d599bbcc7795727650330ad65fe9b',
51
- :amount => 1465,
52
- :currency => 'EUR',
53
- :payed => true,
54
- :consumer => {
55
- :name => 'Hr J Janssen',
56
- :account => 'P001234567',
57
- :city => 'Amsterdam'
58
- },
59
- :message => 'This iDEAL-order has successfuly been payed for,
60
- and this is the first time you check it.'
61
- }
62
- TODO: docs mention 'status' instead of 'message'
63
-
64
- Returns A Hash representing the result of the transaction (see Examples).</pre></li></ul>