pin_up 0.1.0
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 +7 -0
- data/.document +5 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +99 -0
- data/LICENSE.txt +20 -0
- data/README.md +19 -0
- data/Rakefile +48 -0
- data/VERSION +1 -0
- data/lib/pin_up.rb +8 -0
- data/lib/pin_up/base.rb +54 -0
- data/lib/pin_up/card.rb +8 -0
- data/lib/pin_up/charge.rb +23 -0
- data/lib/pin_up/customer.rb +30 -0
- data/lib/pin_up/refund.rb +13 -0
- data/pin_up.gemspec +109 -0
- data/spec/base_spec.rb +30 -0
- data/spec/cards_spec.rb +12 -0
- data/spec/charges_spec.rb +28 -0
- data/spec/customers_spec.rb +36 -0
- data/spec/refund_spec.rb +25 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/vcr/Base/should_list_succesfully_connect_to_Pin.yml +73 -0
- data/spec/vcr/Card/should_create_a_card_and_respond_with_the_card_detail_from_pin.yml +53 -0
- data/spec/vcr/Charge/should_create_a_charge_given_details.yml +52 -0
- data/spec/vcr/Charge/should_list_charges_in_Pin.yml +96 -0
- data/spec/vcr/Charge/should_not_show_a_charge_if_end_date_is_out_of_range.yml +50 -0
- data/spec/vcr/Charge/should_show_a_charge_given_a_search_term.yml +58 -0
- data/spec/vcr/Charge/should_show_a_charge_given_a_token.yml +53 -0
- data/spec/vcr/Customer/should_create_a_customer_given_a_card_token_customer_email.yml +101 -0
- data/spec/vcr/Customer/should_create_a_customer_given_an_email_and_card_details.yml +51 -0
- data/spec/vcr/Customer/should_list_charges_to_a_customer_given_a_token.yml +53 -0
- data/spec/vcr/Customer/should_list_customers.yml +65 -0
- data/spec/vcr/Customer/should_raise_an_error_if_an_attribute_is_missing_in_the_card_hash.yml +50 -0
- data/spec/vcr/Customer/should_show_a_customer_given_a_token.yml +51 -0
- data/spec/vcr/Customer/should_update_a_customer_given_a_token_and_details_to_update.yml +51 -0
- data/spec/vcr/Refund/should_create_a_refund_for_a_given_amount_and_charge.yml +50 -0
- data/spec/vcr/Refund/should_create_a_refund_for_the_entire_amount_of_a_charge_if_no_amount_given.yml +50 -0
- data/spec/vcr/Refund/should_list_all_refunds_made_to_a_charge_given_a_token.yml +50 -0
- data/spec/vcr/Refund/should_return_nothing_if_looking_for_a_charge_without_a_refund.yml +50 -0
- data/test/helper.rb +18 -0
- data/test/test_pin-payments.rb +7 -0
- metadata +239 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<key>:@test-api.pin.net.au/1/customers/cus_8ImkZdEZ6BXUA6NcJDZg_g
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Cache-Control:
|
16
|
+
- must-revalidate, private, max-age=0
|
17
|
+
Content-Type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
Date:
|
20
|
+
- Thu, 04 Jul 2013 16:17:57 GMT
|
21
|
+
Etag:
|
22
|
+
- '"703247531254f18e57bcc7e1dc1d0787"'
|
23
|
+
Server:
|
24
|
+
- Apache/2.2.20 (Ubuntu)
|
25
|
+
Status:
|
26
|
+
- '200'
|
27
|
+
Strict-Transport-Security:
|
28
|
+
- max-age=31536000
|
29
|
+
Vary:
|
30
|
+
- User-Agent
|
31
|
+
X-Powered-By:
|
32
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
33
|
+
X-Rack-Cache:
|
34
|
+
- miss
|
35
|
+
X-Request-Id:
|
36
|
+
- 10f07b6de76bc9a9e13683e885132bca
|
37
|
+
X-Runtime:
|
38
|
+
- '0.063956'
|
39
|
+
X-Ua-Compatible:
|
40
|
+
- IE=Edge,chrome=1
|
41
|
+
Content-Length:
|
42
|
+
- '388'
|
43
|
+
Connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"response":{"token":"cus_8ImkZdEZ6BXUA6NcJDZg_g","email":"hello@myfocusbook.com.au","created_at":"2013-03-23T01:30:29Z","card":{"token":"card_h5nBfXPhwVJH5W0jqwl-pQ","display_number":"XXXX-XXXX-XXXX-0000","scheme":"master","address_line1":"33
|
48
|
+
Lyon Street","address_line2":"","address_city":"Melbourne","address_postcode":"3040","address_state":"Victoria","address_country":"Australia"}}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Thu, 04 Jul 2013 16:18:01 GMT
|
51
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://<key>:@test-api.pin.net.au/1/customers/cus_sRtAD2Am-goZoLg1K-HVpA
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: email=dNitza%40gmail.com&card[number]=5520000000000000&card[address_line1]=12345%20Fake%20Street&card[expiry_month]=05&card[expiry_year]=2014&card[cvc]=123&card[name]=Daniel%20Nitsikopoulos&card[address_city]=Melbourne&card[address_postcode]=1234&card[address_state]=VIC&card[address_country]=Australia
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Cache-Control:
|
16
|
+
- max-age=0, private, must-revalidate
|
17
|
+
Content-Type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
Date:
|
20
|
+
- Fri, 05 Jul 2013 12:02:07 GMT
|
21
|
+
Etag:
|
22
|
+
- '"5d3324ac758be9e325101ba26da32f79"'
|
23
|
+
Server:
|
24
|
+
- Apache/2.2.20 (Ubuntu)
|
25
|
+
Status:
|
26
|
+
- '200'
|
27
|
+
Strict-Transport-Security:
|
28
|
+
- max-age=31536000
|
29
|
+
Vary:
|
30
|
+
- User-Agent
|
31
|
+
X-Powered-By:
|
32
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
33
|
+
X-Rack-Cache:
|
34
|
+
- invalidate, pass
|
35
|
+
X-Request-Id:
|
36
|
+
- 724f1ad63fd2a45c6b76492647f0d3f1
|
37
|
+
X-Runtime:
|
38
|
+
- '0.086696'
|
39
|
+
X-Ua-Compatible:
|
40
|
+
- IE=Edge,chrome=1
|
41
|
+
Content-Length:
|
42
|
+
- '380'
|
43
|
+
Connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"response":{"token":"cus_sRtAD2Am-goZoLg1K-HVpA","email":"dNitza@gmail.com","created_at":"2013-07-04T17:35:54Z","card":{"token":"card_DyGj9CzoLi4W4e2bvVuwXQ","display_number":"XXXX-XXXX-XXXX-0000","scheme":"master","address_line1":"12345
|
48
|
+
Fake Street","address_line2":null,"address_city":"Melbourne","address_postcode":"1234","address_state":"VIC","address_country":"Australia"}}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Fri, 05 Jul 2013 12:02:10 GMT
|
51
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<key>:@test-api.pin.net.au/1/charges/ch_NLEbb_xRgtyz58RGQ5zVqg/refunds
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: amount=400
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 201
|
13
|
+
message: Created
|
14
|
+
headers:
|
15
|
+
Cache-Control:
|
16
|
+
- max-age=0, private, must-revalidate
|
17
|
+
Content-Type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
Date:
|
20
|
+
- Fri, 05 Jul 2013 14:34:06 GMT
|
21
|
+
Etag:
|
22
|
+
- '"f2733c6ccb3b207cf18992e841964bf7"'
|
23
|
+
Server:
|
24
|
+
- Apache/2.2.20 (Ubuntu)
|
25
|
+
Status:
|
26
|
+
- '201'
|
27
|
+
Strict-Transport-Security:
|
28
|
+
- max-age=31536000
|
29
|
+
Vary:
|
30
|
+
- User-Agent
|
31
|
+
X-Powered-By:
|
32
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
33
|
+
X-Rack-Cache:
|
34
|
+
- invalidate, pass
|
35
|
+
X-Request-Id:
|
36
|
+
- 1fbecbc2f400ef73646c4929d2d02159
|
37
|
+
X-Runtime:
|
38
|
+
- '0.750150'
|
39
|
+
X-Ua-Compatible:
|
40
|
+
- IE=Edge,chrome=1
|
41
|
+
Content-Length:
|
42
|
+
- '216'
|
43
|
+
Connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"response":{"token":"rf_vrRyFemJLhyNrY3D9nFXCA","success":null,"amount":400,"currency":"AUD","charge":"ch_NLEbb_xRgtyz58RGQ5zVqg","created_at":"2013-07-05T14:34:06Z","error_message":null,"status_message":"Pending"}}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 05 Jul 2013 14:34:11 GMT
|
50
|
+
recorded_with: VCR 2.5.0
|
data/spec/vcr/Refund/should_create_a_refund_for_the_entire_amount_of_a_charge_if_no_amount_given.yml
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<key>:@test-api.pin.net.au/1/charges/ch_QG_2Gl5x47WEzTdBIwnluQ/refunds
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 201
|
13
|
+
message: Created
|
14
|
+
headers:
|
15
|
+
Cache-Control:
|
16
|
+
- max-age=0, private, must-revalidate
|
17
|
+
Content-Type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
Date:
|
20
|
+
- Fri, 05 Jul 2013 14:35:13 GMT
|
21
|
+
Etag:
|
22
|
+
- '"e6549b24f9063af356ecb09451d00d82"'
|
23
|
+
Server:
|
24
|
+
- Apache/2.2.20 (Ubuntu)
|
25
|
+
Status:
|
26
|
+
- '201'
|
27
|
+
Strict-Transport-Security:
|
28
|
+
- max-age=31536000
|
29
|
+
Vary:
|
30
|
+
- User-Agent
|
31
|
+
X-Powered-By:
|
32
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
33
|
+
X-Rack-Cache:
|
34
|
+
- invalidate, pass
|
35
|
+
X-Request-Id:
|
36
|
+
- 9baa0aa6d06357a3546830d9101844e4
|
37
|
+
X-Runtime:
|
38
|
+
- '0.124948'
|
39
|
+
X-Ua-Compatible:
|
40
|
+
- IE=Edge,chrome=1
|
41
|
+
Content-Length:
|
42
|
+
- '217'
|
43
|
+
Connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"response":{"token":"rf_NVeBMNJ66egAJSxCtIMuUg","success":null,"amount":7900,"currency":"AUD","charge":"ch_QG_2Gl5x47WEzTdBIwnluQ","created_at":"2013-07-05T14:35:13Z","error_message":null,"status_message":"Pending"}}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 05 Jul 2013 14:35:17 GMT
|
50
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<key>:@test-api.pin.net.au/1/charges/ch_S_3tP81Q9_sDngSv27gShQ/refunds
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Cache-Control:
|
16
|
+
- must-revalidate, private, max-age=0
|
17
|
+
Content-Type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
Date:
|
20
|
+
- Fri, 05 Jul 2013 14:18:10 GMT
|
21
|
+
Etag:
|
22
|
+
- '"6d6a37ded1f5d0464a4e269566eafa62"'
|
23
|
+
Server:
|
24
|
+
- Apache/2.2.20 (Ubuntu)
|
25
|
+
Status:
|
26
|
+
- '200'
|
27
|
+
Strict-Transport-Security:
|
28
|
+
- max-age=31536000
|
29
|
+
Vary:
|
30
|
+
- User-Agent
|
31
|
+
X-Powered-By:
|
32
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
33
|
+
X-Rack-Cache:
|
34
|
+
- miss
|
35
|
+
X-Request-Id:
|
36
|
+
- 7120fc5c23b945f65ff219f59dd4ceb6
|
37
|
+
X-Runtime:
|
38
|
+
- '0.046016'
|
39
|
+
X-Ua-Compatible:
|
40
|
+
- IE=Edge,chrome=1
|
41
|
+
Content-Length:
|
42
|
+
- '228'
|
43
|
+
Connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"response":[{"token":"rf_O4lHrNzwXYmMmTbBq0ZLPw","success":true,"amount":500,"currency":"AUD","charge":"ch_S_3tP81Q9_sDngSv27gShQ","created_at":"2013-03-02T04:20:46Z","error_message":null,"status_message":"Success"}],"count":1}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 05 Jul 2013 14:18:14 GMT
|
50
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<key>:@test-api.pin.net.au/1/charges/ch_rqPIWDK71YU46M4MAQHQKg/refunds
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Cache-Control:
|
16
|
+
- must-revalidate, private, max-age=0
|
17
|
+
Content-Type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
Date:
|
20
|
+
- Fri, 05 Jul 2013 14:25:22 GMT
|
21
|
+
Etag:
|
22
|
+
- '"e3ff22212d43c69ee2cc75d9eb8f9b63"'
|
23
|
+
Server:
|
24
|
+
- Apache/2.2.20 (Ubuntu)
|
25
|
+
Status:
|
26
|
+
- '200'
|
27
|
+
Strict-Transport-Security:
|
28
|
+
- max-age=31536000
|
29
|
+
Vary:
|
30
|
+
- User-Agent
|
31
|
+
X-Powered-By:
|
32
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
33
|
+
X-Rack-Cache:
|
34
|
+
- miss
|
35
|
+
X-Request-Id:
|
36
|
+
- 2a44b7a1fabd3b85ca493d0a109fe21e
|
37
|
+
X-Runtime:
|
38
|
+
- '0.038053'
|
39
|
+
X-Ua-Compatible:
|
40
|
+
- IE=Edge,chrome=1
|
41
|
+
Content-Length:
|
42
|
+
- '25'
|
43
|
+
Connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"response":[],"count":0}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 05 Jul 2013 14:25:26 GMT
|
50
|
+
recorded_with: VCR 2.5.0
|
data/test/helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'shoulda'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'pin_up'
|
16
|
+
|
17
|
+
class Test::Unit::TestCase
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,239 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pin_up
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Daniel Nitsikopoulos
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-07-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: shoulda
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: httparty
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jeweler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.8.4
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.8.4
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: webmock
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: vcr
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: httparty
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: webmock
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: vcr
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
description: A Ruby gem wrapper for the pin-payments (pin.net.au) API
|
168
|
+
email: dnitza@gmail.com
|
169
|
+
executables: []
|
170
|
+
extensions: []
|
171
|
+
extra_rdoc_files:
|
172
|
+
- LICENSE.txt
|
173
|
+
- README.md
|
174
|
+
files:
|
175
|
+
- .document
|
176
|
+
- Gemfile
|
177
|
+
- Gemfile.lock
|
178
|
+
- LICENSE.txt
|
179
|
+
- README.md
|
180
|
+
- Rakefile
|
181
|
+
- VERSION
|
182
|
+
- lib/pin_up.rb
|
183
|
+
- lib/pin_up/base.rb
|
184
|
+
- lib/pin_up/card.rb
|
185
|
+
- lib/pin_up/charge.rb
|
186
|
+
- lib/pin_up/customer.rb
|
187
|
+
- lib/pin_up/refund.rb
|
188
|
+
- pin_up.gemspec
|
189
|
+
- spec/base_spec.rb
|
190
|
+
- spec/cards_spec.rb
|
191
|
+
- spec/charges_spec.rb
|
192
|
+
- spec/customers_spec.rb
|
193
|
+
- spec/refund_spec.rb
|
194
|
+
- spec/spec_helper.rb
|
195
|
+
- spec/vcr/Base/should_list_succesfully_connect_to_Pin.yml
|
196
|
+
- spec/vcr/Card/should_create_a_card_and_respond_with_the_card_detail_from_pin.yml
|
197
|
+
- spec/vcr/Charge/should_create_a_charge_given_details.yml
|
198
|
+
- spec/vcr/Charge/should_list_charges_in_Pin.yml
|
199
|
+
- spec/vcr/Charge/should_not_show_a_charge_if_end_date_is_out_of_range.yml
|
200
|
+
- spec/vcr/Charge/should_show_a_charge_given_a_search_term.yml
|
201
|
+
- spec/vcr/Charge/should_show_a_charge_given_a_token.yml
|
202
|
+
- spec/vcr/Customer/should_create_a_customer_given_a_card_token_customer_email.yml
|
203
|
+
- spec/vcr/Customer/should_create_a_customer_given_an_email_and_card_details.yml
|
204
|
+
- spec/vcr/Customer/should_list_charges_to_a_customer_given_a_token.yml
|
205
|
+
- spec/vcr/Customer/should_list_customers.yml
|
206
|
+
- spec/vcr/Customer/should_raise_an_error_if_an_attribute_is_missing_in_the_card_hash.yml
|
207
|
+
- spec/vcr/Customer/should_show_a_customer_given_a_token.yml
|
208
|
+
- spec/vcr/Customer/should_update_a_customer_given_a_token_and_details_to_update.yml
|
209
|
+
- spec/vcr/Refund/should_create_a_refund_for_a_given_amount_and_charge.yml
|
210
|
+
- spec/vcr/Refund/should_create_a_refund_for_the_entire_amount_of_a_charge_if_no_amount_given.yml
|
211
|
+
- spec/vcr/Refund/should_list_all_refunds_made_to_a_charge_given_a_token.yml
|
212
|
+
- spec/vcr/Refund/should_return_nothing_if_looking_for_a_charge_without_a_refund.yml
|
213
|
+
- test/helper.rb
|
214
|
+
- test/test_pin-payments.rb
|
215
|
+
homepage: http://github.com/dNitza/pin_up
|
216
|
+
licenses:
|
217
|
+
- MIT
|
218
|
+
metadata: {}
|
219
|
+
post_install_message:
|
220
|
+
rdoc_options: []
|
221
|
+
require_paths:
|
222
|
+
- lib
|
223
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
224
|
+
requirements:
|
225
|
+
- - '>='
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
version: '0'
|
228
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
|
+
requirements:
|
230
|
+
- - '>='
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: '0'
|
233
|
+
requirements: []
|
234
|
+
rubyforge_project:
|
235
|
+
rubygems_version: 2.0.3
|
236
|
+
signing_key:
|
237
|
+
specification_version: 4
|
238
|
+
summary: A Ruby gem wrapper for the pin-payments (pin.net.au) API
|
239
|
+
test_files: []
|