paypal-sdk-merchant 1.96.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ module PayPal
2
+ module SDK
3
+ module Merchant
4
+ VERSION = "1.96.0"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,33 @@
1
+ -----BEGIN RSA PRIVATE KEY-----
2
+ MIICXAIBAAKBgQCx/rJhKDRYhs9WZj66FA+HidsrKwvep3g+YNbm1fXmjcg2rEmC
3
+ kq71+Ftw9rx0Uz7vmg6vcsASUgOyeNG7mVB1SsXc6j+JAzZsmpzxHI0QKm+nBNTS
4
+ OAp5NWn6NZQfu3BNAJ/Mok/iL3am2DWXV6dU74J66rBpwIJfzs9kmw8ZGwIDAQAB
5
+ AoGAa/V1sCQ4i7FItLjTNv3P5X+h5W74hhXBguQttFj2Ct7YHwEknQPnBt2aaMve
6
+ xhdvxtgELDpHcVU5VNifLU/yUg3+DSr/YkpBWOcNTCt1seW/z5s+jr2fQERQKbyf
7
+ SXWMTqwrQ19iQoCPYaj7Drf68JhksQCaYN650g7+B/QmSBECQQDp6r75fzDtEWrr
8
+ O4Sl9plK6CRLqQQ3LveAw4JV31N2UAqgAYtzRqD6K+SviAVtX9xxuv983qQxsfX4
9
+ ozE9sGXPAkEAwsxwR1s2Acuy10h3Xj6VtnFB3PpUrkSI9c9ZxF4CMf/+AS/b2UEe
10
+ QhH60WHY8ccgKT/DoPWBcEu2o0f9nPw29QJBAI480zHNeMe/Hp+5iliM0fvtmxxy
11
+ wwB3S8L9n4RuD0dTNpLDPbO0D/DvvdhKwtoWP2rcxbx9eaRKTYKKYUfcupsCQAkP
12
+ SQmIjHJ47tBkZmjTsFLT4aRNYDLarSQBiMNBPAjnRwD3INpx1N5tx6SFUHmuMSi5
13
+ 9nc9888tNklRx9HNSSECQHgs9ExBpA6WbRVcgiizOKH7fmNxAB5f6TQ2W1QHMUb+
14
+ UhZpwuDelOIfzJAQUZGTZk8a8uVmyXU5hTf3ZDbrnJ8=
15
+ -----END RSA PRIVAT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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
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Merchant" do
4
+
5
+ before :all do
6
+ @client = PayPal::SDK::Merchant::API.new
7
+ end
8
+
9
+ describe "Services" do
10
+ Actions = PayPal::SDK::Merchant::Services.instance_methods.select{|s| s =~ /^[A-Z]/ and s !~ /^Build/ } -
11
+ [ :CompleteRecoup ]
12
+ Actions.each do |service_method|
13
+ it "make empty request to #{service_method}" do
14
+ response = @client.send(service_method, {})
15
+ response.ack.should_not be_nil
16
+ end
17
+ end
18
+ end
19
+
20
+ describe "DataTypes" do
21
+ PayPal::SDK::Merchant::DataTypes.constants.each do |const_name|
22
+ it "create object for #{const_name}" do
23
+ klass = PayPal::SDK::Merchant::DataTypes.const_get(const_name)
24
+ klass.new.should be_a klass
25
+ end
26
+ end
27
+ end
28
+
29
+ end
@@ -0,0 +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-merchant'
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Merchant" do
4
+
5
+ before :all do
6
+ @client = PayPal::SDK::Merchant::API.new
7
+ end
8
+
9
+ describe "Services" do
10
+ it "search transaction by date" do
11
+ response = @client.transaction_search( :StartDate => "2012-11-01T00:00:00+00:00", :EndDate => "2012-11-01T12:00:00+0000" )
12
+ response.ack.should eql "Success"
13
+ end
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: paypal-sdk-merchant
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.96.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - PayPal
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-12-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ 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.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.1.0
30
+ description: Merchants SDK
31
+ email:
32
+ - DL-PP-Platform-Ruby-SDK@ebay.com
33
+ executables: []
34
+ extensions: []
35
+ extra_rdoc_files: []
36
+ files:
37
+ - spec/transaction_search_spec.rb
38
+ - spec/spec_helper.rb
39
+ - spec/config/paypal.yml
40
+ - spec/config/cert_key.pem
41
+ - spec/merchant_spec.rb
42
+ - lib/paypal-sdk-merchant.rb
43
+ - lib/paypal-sdk/merchant/services.rb
44
+ - lib/paypal-sdk/merchant/api.rb
45
+ - lib/paypal-sdk/merchant/version.rb
46
+ - lib/paypal-sdk/merchant/data_types.rb
47
+ - lib/paypal-sdk/merchant.rb
48
+ - Rakefile
49
+ - README.md
50
+ - Gemfile
51
+ homepage: https://www.x.com/
52
+ licenses: []
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ segments:
64
+ - 0
65
+ hash: -211300945
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ segments:
73
+ - 0
74
+ hash: -211300945
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 1.8.24
78
+ signing_key:
79
+ specification_version: 3
80
+ summary: Merchants SDK
81
+ test_files:
82
+ - spec/transaction_search_spec.rb
83
+ - spec/spec_helper.rb
84
+ - spec/config/paypal.yml
85
+ - spec/config/cert_key.pem
86
+ - spec/merchant_spec.rb