paypal-sdk-permissions 1.96.1 → 1.96.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ gemspec
4
4
 
5
5
  gem 'paypal-sdk-core', :git => "https://github.com/paypal/sdk-core-ruby.git"
6
6
 
7
- if Dir.exist? File.expand_path('../samples', __FILE__)
7
+ if File.exist? File.expand_path('../samples/permissions_samples.gemspec', __FILE__)
8
8
  gem 'permissions_samples', :path => 'samples', :require => false
9
9
  group :test do
10
10
  gem 'rspec-rails', :require => false
data/README.md CHANGED
@@ -115,15 +115,20 @@ To get response status:
115
115
 
116
116
  ```ruby
117
117
  require 'paypal-sdk-permissions'
118
- @api = PayPal::SDK::Permissions::API.new
118
+ @api = PayPal::SDK::Permissions::API.new(
119
+ :mode => "sandbox", # Set "live" for production
120
+ :app_id => "APP-80W284485P519543T",
121
+ :username => "jb-us-seller_api1.paypal.com",
122
+ :password => "WX4WTU3S8MY44S7F",
123
+ :signature => "AFcWxV21C7fd0v3bYYYRCpSSRl31A7yDhhsPUU2XhtMoZXsWHFxu-RWy" )
119
124
 
120
125
  # Build request object
121
- @request_permissions_request = @api.build_request_permissions()
122
- @request_permissions_request.scope = ["EXPRESS_CHECKOUT"]
123
- @request_permissions_request.callback = "http://localhost:3000/permissions/get_access_token"
126
+ @request_permissions = @api.build_request_permissions({
127
+ :scope => ["EXPRESS_CHECKOUT","INVOICING"],
128
+ :callback => "http://localhost:3000/samples/permissions/get_access_token" })
124
129
 
125
130
  # Make API call & get response
126
- @request_permissions_response = @api.request_permissions(@request_permissions_request)
131
+ @request_permissions_response = @api.request_permissions(@request_permissions)
127
132
 
128
133
  # Access Response
129
134
  @request_permissions_response.responseEnvelope
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module Permissions
4
- VERSION = "1.96.1"
4
+ VERSION = "1.96.2"
5
5
  end
6
6
  end
7
7
  end
File without changes
@@ -1,25 +1,24 @@
1
- test: &default
2
- username: jb-us-seller_api1.paypal.com
3
- password: WX4WTU3S8MY44S7F
4
- signature: AFcWxV21C7fd0v3bYYYRCpSSRl31A7yDhhsPUU2XhtMoZXsWHFxu-RWy
5
- app_id: APP-80W284485P519543T
6
- http_timeout: 30
7
- mode: sandbox
8
- redirect_url: "https://www.sandbox.paypal.com/webscr&cmd="
9
- dev_central_url: "https://developer.paypal.com"
10
- development:
11
- <<: *default
12
-
13
- with_certificate:
14
- <<: *default
15
- username: platfo_1255170694_biz_api1.gmail.com
16
- password: 2DPPKUPKB7DQLXNR
17
- signature:
18
- cert_path: "spec/config/cert_key.pem"
19
- app_id: APP-80W284485P519543T
20
- soap_end_point: "https://api.sandbox.paypal.com/2.0/"
21
-
22
- with_oauth_token:
23
- <<: *default
24
- token: H2kLxjm9lCxQdnOYxkH29I53TpZyIXez4GtHhAVGpiU3DiVTz5eNPQ
25
- token_secret: MnZ-iPdDqGLEfQIuTIfUN4uK9lU
1
+ test: &default
2
+ username: jb-us-seller_api1.paypal.com
3
+ password: WX4WTU3S8MY44S7F
4
+ signature: AFcWxV21C7fd0v3bYYYRCpSSRl31A7yDhhsPUU2XhtMoZXsWHFxu-RWy
5
+ app_id: APP-80W284485P519543T
6
+ http_timeout: 30
7
+ mode: sandbox
8
+
9
+ development:
10
+ <<: *default
11
+
12
+ with_certificate:
13
+ <<: *default
14
+ username: platfo_1255170694_biz_api1.gmail.com
15
+ password: 2DPPKUPKB7DQLXNR
16
+ signature:
17
+ cert_path: "spec/config/cert_key.pem"
18
+ app_id: APP-80W284485P519543T
19
+ soap_end_point: "https://api.sandbox.paypal.com/2.0/"
20
+
21
+ with_oauth_token:
22
+ <<: *default
23
+ token: H2kLxjm9lCxQdnOYxkH29I53TpZyIXez4GtHhAVGpiU3DiVTz5eNPQ
24
+ token_secret: MnZ-iPdDqGLEfQIuTIfUN4uK9lU
@@ -1,27 +1,27 @@
1
- require 'spec_helper'
2
-
3
- describe "Permissions" do
4
-
5
- before :all do
6
- @client = PayPal::SDK::Permissions::API.new
7
- end
8
-
9
- describe "Services" do
10
- PayPal::SDK::Permissions::Services.instance_methods.select{|s| s =~ /^[A-Z]/ and s !~ /^Build/ }.each do |service_method|
11
- it "make empty request to #{service_method}" do
12
- response = @client.send(service_method, {})
13
- response.response_envelope.ack.should_not be_nil
14
- end
15
- end
16
- end
17
-
18
- describe "DataTypes" do
19
- PayPal::SDK::Permissions::DataTypes.constants.each do |const_name|
20
- it "create object for #{const_name}" do
21
- klass = PayPal::SDK::Permissions::DataTypes.const_get(const_name)
22
- klass.new.should be_a klass
23
- end
24
- end
25
- end
26
-
27
- end
1
+ require 'spec_helper'
2
+
3
+ describe "Permissions" do
4
+
5
+ before :all do
6
+ @client = PayPal::SDK::Permissions::API.new
7
+ end
8
+
9
+ describe "Services" do
10
+ PayPal::SDK::Permissions::Services.instance_methods.select{|s| s =~ /^[A-Z]/ and s !~ /^Build/ }.each do |service_method|
11
+ it "make empty request to #{service_method}" do
12
+ response = @client.send(service_method, {})
13
+ response.response_envelope.ack.should_not be_nil
14
+ end
15
+ end
16
+ end
17
+
18
+ describe "DataTypes" do
19
+ PayPal::SDK::Permissions::DataTypes.constants.each do |const_name|
20
+ it "create object for #{const_name}" do
21
+ klass = PayPal::SDK::Permissions::DataTypes.const_get(const_name)
22
+ klass.new.should be_a klass
23
+ end
24
+ end
25
+ end
26
+
27
+ end
@@ -1,6 +1,6 @@
1
- require 'bundler/setup'
2
-
3
- Bundler.require :default, :test
4
- PayPal::SDK::Core::Config.load('spec/config/paypal.yml', 'test')
5
-
6
- require 'paypal-sdk-permissions'
1
+ require 'bundler/setup'
2
+
3
+ Bundler.require :default, :test
4
+ PayPal::SDK::Core::Config.load('spec/config/paypal.yml', 'test')
5
+
6
+ require 'paypal-sdk-permissions'
metadata CHANGED
@@ -1,42 +1,48 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: paypal-sdk-permissions
3
- version: !ruby/object:Gem::Version
4
- version: 1.96.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 403
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 96
9
+ - 2
10
+ version: 1.96.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - PayPal
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-12-20 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-03-12 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: paypal-sdk-core
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 0.1.2
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
- requirements:
25
+ requirements:
27
26
  - - ~>
28
- - !ruby/object:Gem::Version
29
- version: 0.1.2
30
- description: The PayPal Permission SDK provides Ruby APIs for developers to request
31
- and obtain permissions from merchants and consumers, to execute APIs on behalf of
32
- them. The permissions include variety of operations from processing payments to
33
- accessing account transaction history
34
- email:
27
+ - !ruby/object:Gem::Version
28
+ hash: 23
29
+ segments:
30
+ - 0
31
+ - 2
32
+ - 0
33
+ version: 0.2.0
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ description: The PayPal Permission SDK provides Ruby APIs for developers to request and obtain permissions from merchants and consumers, to execute APIs on behalf of them. The permissions include variety of operations from processing payments to accessing account transaction history
37
+ email:
35
38
  - DL-PP-Platform-Ruby-SDK@ebay.com
36
39
  executables: []
40
+
37
41
  extensions: []
42
+
38
43
  extra_rdoc_files: []
39
- files:
44
+
45
+ files:
40
46
  - spec/permissions_spec.rb
41
47
  - spec/spec_helper.rb
42
48
  - spec/config/paypal.yml
@@ -52,35 +58,38 @@ files:
52
58
  - Gemfile
53
59
  homepage: https://www.x.com/
54
60
  licenses: []
61
+
55
62
  post_install_message:
56
63
  rdoc_options: []
57
- require_paths:
64
+
65
+ require_paths:
58
66
  - lib
59
- required_ruby_version: !ruby/object:Gem::Requirement
67
+ required_ruby_version: !ruby/object:Gem::Requirement
60
68
  none: false
61
- requirements:
62
- - - ! '>='
63
- - !ruby/object:Gem::Version
64
- version: '0'
65
- segments:
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
66
74
  - 0
67
- hash: -1061590271
68
- required_rubygems_version: !ruby/object:Gem::Requirement
75
+ version: "0"
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
77
  none: false
70
- requirements:
71
- - - ! '>='
72
- - !ruby/object:Gem::Version
73
- version: '0'
74
- segments:
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ hash: 3
82
+ segments:
75
83
  - 0
76
- hash: -1061590271
84
+ version: "0"
77
85
  requirements: []
86
+
78
87
  rubyforge_project:
79
88
  rubygems_version: 1.8.24
80
89
  signing_key:
81
90
  specification_version: 3
82
91
  summary: PayPal Permissions SDK
83
- test_files:
92
+ test_files:
84
93
  - spec/permissions_spec.rb
85
94
  - spec/spec_helper.rb
86
95
  - spec/config/paypal.yml