peoplespayments 0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a2d22c012ae5b75b4b487570cedc075237371e5d
4
+ data.tar.gz: 711788bca56d6a75baa65fc0624250734feb3c80
5
+ SHA512:
6
+ metadata.gz: f677cbe16f40c5a3e9b9b9822c8bf35803840a4642b9576d7acaf6520065e2a2ea911827c291642088598a65c23048322655bb568da59967e4dcaf3626b52cca
7
+ data.tar.gz: ac798678e94ec2a7fc78bf1a24379103acb9f16945c2163907639c929f395c118d9ee0673b0f47b65841e053927720284559b1625b4cf5a2a09ecd13c05b66cc
@@ -0,0 +1,91 @@
1
+ n
2
+ continue
3
+ doc
4
+ dispute.upload_evidence File.expand_path('test/fixtures/receipt.jpg', File.dirname(__FILE__))
5
+ evidence = dispute.upload_evidence File.expand_path('test/fixtures/receipt.jpg', File.dirname(__FILE__))
6
+ evidene = dispute.upload_evidence File.expand_path('test/fixtures/receipt.jpg', File.dirname(__FILE__))
7
+ evidene = dispute.upload_evidence File.expand_path('fixtures/tests/receipt.jpg', File.dirname(__FILE__))
8
+ dispute.upload_evidence File.expand_path('fixtures/receipt.jpg', File.dirname(__FILE__))
9
+ @attributes
10
+ *args
11
+ method
12
+ s
13
+ continue
14
+ s
15
+ self.evidence
16
+ self.evidence.create :file => Faraday::UploadIO.new("/Users/michaelserna/code/finix/payline-ruby/test/fixtures/receipt.jpg", 'application/octet-stream')
17
+ Faraday::UploadIO.new("/Users/michaelserna/code/finix/payline-ruby/test/fixtures/receipt.jpg", 'application/octet-stream')
18
+ Faraday::UploadIO.new(evidence_file_path, 'application/octet-stream')
19
+ cat evidence_file_path
20
+ evidence_file_path
21
+ s
22
+ dispute.upload_evidence File.expand_path('test/fixtures/receipt.jpg', File.dirname(__FILE__))
23
+ c
24
+ continue
25
+ dispute.upload_evidence File.expand_path('test/fixtures/receipt.jpg', File.dirname(__FILE__))
26
+ dispute.upload_evidence File.expand_path('test/fixtures/receipt.jpg', File.dirname(__FILE__)
27
+ dispute
28
+ cat File.expand_path('test/fixtures/receipt.jpg', File.dirname(__FILE__))
29
+ File.expand_path('test/fixtures/receipt.jpg', File.dirname(__FILE__))
30
+ dispute.upload_evidence File.expand_path('test/fixtures/receipt.jpg', File.dirname(__FILE__))
31
+ evidence
32
+ evidence = dispute.upload_evidence File.expand_path('fixtures/receipt.jpg', File.dirname(__FILE__))
33
+ File.expand_path('fixtures/receipt.jpg', File.dirname(__FILE__))
34
+ dispute.upload_evidence File.expand_path('fixtures/receipt.jpg', File.dirname(__FILE__))
35
+ c
36
+ s
37
+ n
38
+ transfer.disputes.each { |x| x.id}
39
+ transfer.disputes.each { |x| puts x.id}
40
+ transfer.disputes.each { |x| puts x.id}}
41
+ transfer.disputes
42
+ transfer.disputes.count
43
+ n
44
+ transfer.disputes.each do |dispute|
45
+ n
46
+ c
47
+ n
48
+ c
49
+ n
50
+ transfer.disputes.each do |dispute|
51
+ n
52
+ transfer.disputes.each do |dispute|
53
+ transfer.disputes.count
54
+ Payline::Test.wait_for { transfer.refresh.state == 'SUCCEEDED' }
55
+ transfer
56
+ n
57
+ transfer
58
+ c
59
+ n
60
+ c
61
+ n
62
+ c
63
+ n
64
+ c
65
+ n
66
+ c
67
+ n
68
+ Payline::User.new(:enabled => 'true', :role => 'ROLE_PLATFORM').save
69
+ continue
70
+ @admin = Payline::User.new(:enabled => 'true', :role => 'ROLE_PLATFORM').save
71
+ Payline::User.find(:id => Payline::Test.platform_username)
72
+ continue
73
+ Payline::User.find(:id => Payline::Test.platform_username)
74
+ Payline::User.new(:enabled => 'true', :role => 'ROLE_PARTNER').save
75
+ ds
76
+ c
77
+ continue
78
+ d
79
+ c
80
+ continue
81
+ c
82
+ Payline::User.find(:id => Payline::Test.platform_username)
83
+ Payline::User.retrieve(:id=> Payline::Test.platform_username)
84
+ Payline::User.find(:id => Payline::Test.platform_username)
85
+ Payline::Test.platform_password
86
+ Payline::Test.platform_username
87
+ Payline::Test.url
88
+ Payline::User.new(:enabled => 'true', :role => 'ROLE_PLATFORM').save
89
+ c
90
+ continue
91
+ Payline::User.new(:enabled => 'true', :role => 'ROLE_PARTNER').save
@@ -0,0 +1,5 @@
1
+ /Gemfile.lock
2
+ *.gem
3
+ .report/
4
+ .idea/
5
+ .vcr/
@@ -0,0 +1 @@
1
+ peoplespayments
@@ -0,0 +1 @@
1
+ ruby-1.9.3
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rake', '~> 10.4.2'
4
+
5
+ group :test do
6
+ gem 'minitest', '~> 5.10.1'
7
+ gem 'minitest-reporters', '~> 1.1.13'
8
+ gem 'vcr', '~> 3.0.3'
9
+ gem 'rspec', '~> 3.5.0'
10
+ end
11
+
12
+ gemspec
@@ -0,0 +1,3 @@
1
+ # peoples-payments-ruby
2
+
3
+ [![CircleCI](https://circleci.com/gh/Payline/payline-ruby.svg?style=svg&circle-token=bc25e16ab2706de322934f64551ca5111fb9bda3)](https://circleci.com/gh/Payline/payline-ruby)
@@ -0,0 +1,12 @@
1
+ gem 'minitest'
2
+ require 'rake'
3
+ require 'bundler/gem_tasks'
4
+ require 'rake/testtask'
5
+ require_relative 'test/helper_test'
6
+
7
+ desc 'Run test suite'
8
+ Rake::TestTask.new do |t|
9
+ Payline::Test.logger = Logger.new STDOUT
10
+ Payline::Test.logger.level = Logger::ERROR
11
+ t.pattern ='test/**/test_*.rb'
12
+ end
@@ -0,0 +1,32 @@
1
+ machine:
2
+ ruby:
3
+ version: 1.9.3
4
+
5
+ environment:
6
+ RUBY_VERSIONS: 1.9.3,2.0.0,2.1.10,2.2.5,2.2.6,2.3.1
7
+ PROCESSING_URL: https://api-staging.finix.io
8
+
9
+ dependencies:
10
+ override:
11
+ - rvm get head
12
+ - rvm install $RUBY_VERSIONS
13
+ - rvm $RUBY_VERSIONS --verbose do gem install bundler
14
+ - rvm $RUBY_VERSIONS --verbose do bundle install
15
+
16
+ test:
17
+ override:
18
+ - rvm $RUBY_VERSIONS --verbose do bundle exec rake test
19
+
20
+ post:
21
+ - cp -Rf .report/ $CIRCLE_ARTIFACTS
22
+
23
+ deployment:
24
+ release:
25
+ tag: /v[0-9]+(\.[0-9]+)*/
26
+ owner: PeoplesPayments
27
+ commands:
28
+ - |
29
+ curl -u ${rubygems_user}:${rubygems_password} https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
30
+ - chmod 0600 ~/.gem/credentials
31
+ - gem build *.gemspec
32
+ - gem push *.gem
@@ -0,0 +1,22 @@
1
+ require 'peoplespayments/version' unless defined? PeoplesPayments::VERSION
2
+ require 'finix'
3
+ # require 'finix/client'
4
+ # require 'finix/errors'
5
+
6
+ module PeoplesPayments
7
+ Finix.singleton_methods.each do |m|
8
+ (class << self; self; end).send :define_method, m, Finix.method(m).to_proc
9
+ end
10
+
11
+ classes = Finix.constants.find_all {|m| (Finix.const_get m).kind_of? Class}
12
+ classes.each do |cls|
13
+ clz = Class.new Finix.const_get cls
14
+ self.const_set(cls, clz)
15
+ end
16
+
17
+ [PeoplesPayments.errors_registry, PeoplesPayments.hypermedia_registry].each do |registry|
18
+ registry.each do |key, value|
19
+ registry[key] = PeoplesPayments.const_get value.name.split('::').last
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,3 @@
1
+ module PeoplesPayments
2
+ VERSION = '0.16'
3
+ end
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'peoplespayments/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'peoplespayments'
8
+ spec.required_ruby_version = '>= 1.9'
9
+ spec.version = PeoplesPayments::VERSION
10
+ spec.authors = ['Peoples Payments']
11
+ spec.email = ['support@finixpayments.com']
12
+
13
+ spec.summary = %q{Peoples Payments Ruby Client}
14
+ spec.description = %q{Peoples Payments Ruby Client}
15
+ spec.homepage = 'https://www.peoplestrust.com/en/peoples-payment-solutions/'
16
+ spec.license = 'MIT'
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
+ f.match(%r{^(test|spec|features)/})
20
+ end
21
+ spec.bindir = 'bin'
22
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
+ spec.require_paths = ['lib']
24
+
25
+ spec.add_dependency('finix', PeoplesPayments::VERSION)
26
+ end
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: peoplespayments
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.16'
5
+ platform: ruby
6
+ authors:
7
+ - Peoples Payments
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-04-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: finix
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: '0.16'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: '0.16'
27
+ description: Peoples Payments Ruby Client
28
+ email:
29
+ - support@finixpayments.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".byebug_history"
35
+ - ".gitignore"
36
+ - ".ruby-gemset"
37
+ - ".ruby-version"
38
+ - Gemfile
39
+ - README.md
40
+ - Rakefile
41
+ - circle.yml
42
+ - lib/peoplespayments.rb
43
+ - lib/peoplespayments/version.rb
44
+ - peoplespayments-ruby.gemspec
45
+ homepage: https://www.peoplestrust.com/en/peoples-payment-solutions/
46
+ licenses:
47
+ - MIT
48
+ metadata: {}
49
+ post_install_message:
50
+ rdoc_options: []
51
+ require_paths:
52
+ - lib
53
+ required_ruby_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '1.9'
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ requirements: []
64
+ rubyforge_project:
65
+ rubygems_version: 2.5.1
66
+ signing_key:
67
+ specification_version: 4
68
+ summary: Peoples Payments Ruby Client
69
+ test_files: []