paypal-sdk-merchant 1.106.1 → 1.106.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af710fee6b653504cba90576b688b1050d4c09c7
4
- data.tar.gz: bf795af6092ebed0250de159ba22f3db1594e5fb
3
+ metadata.gz: 2d11b78af8737610720839f1160e860739e6c80e
4
+ data.tar.gz: 23c4134d0776a07a486d720203f14d94626da409
5
5
  SHA512:
6
- metadata.gz: 58cbd161cd311f3a4ac78d3f34d191e6c328825c1ed724abd50aa04d1c9a70461cac2fc13f8808627b4261528c499cd5163978d1224cb5b0bef187fa458aa472
7
- data.tar.gz: d229493aac122e2ad61c9bc7726a809d82b5e3bb164d0abd4411dd647e721c4cdb9d9eabb5e82280729d98dbcab1ab4686cb5813302bcc36eaacd4410498e465
6
+ metadata.gz: dfdf501beb45afd45423373758af33b7c2bab0d5903f3cc449d52731d4259a3788d56aedaf07b7d092f538d528d221fb26e41fbb15f12d46534df86997b9728e
7
+ data.tar.gz: 1dfb9f165aef28f2c1aa7738ab3c566575db012a8e134b23116ae993ee0a18392b5b4b5c7074d3f03a2effc96b85e5939027595b1c86ffc1a17188aac83da337
data/Gemfile CHANGED
@@ -16,4 +16,7 @@ group :test do
16
16
  gem 'rspec'
17
17
  end
18
18
 
19
- gem 'nokogiri', '~> 1.5.9', :platform => :mri_18
19
+ platform :mri_18 do
20
+ gem 'nokogiri', '~> 1.5.9'
21
+ gem 'rubyzip', '~> 0.9.9'
22
+ end
@@ -20,6 +20,21 @@ module PayPal
20
20
  def ipn_valid?(raw_post_data)
21
21
  Core::API::IPN.valid?(raw_post_data, config)
22
22
  end
23
+
24
+ # Service Call: BillAgreementUpdate
25
+ # @param BillAgreementUpdateReq
26
+ # @return BAUpdateResponseType
27
+ def BillAgreementUpdate(options = {} , http_header = {})
28
+ request_object = BuildBillAgreementUpdate(options)
29
+ request_hash = request_object.to_hash
30
+ response_hash = request(nil, {
31
+ "ns:BillAgreementUpdateReq" => {
32
+ "ns:BAUpdateRequest" => request_hash
33
+ }
34
+ }, http_header)
35
+ BAUpdateResponseType.new(response_hash)
36
+ end
37
+ alias_method :bill_agreement_update, :BillAgreementUpdate
23
38
  end
24
39
  end
25
40
  end
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module Merchant
4
- VERSION = "1.106.1"
4
+ VERSION = "1.106.2"
5
5
  end
6
6
  end
7
7
  end
@@ -119,5 +119,12 @@ describe "Merchant" do
119
119
  @api.ipn_valid?("Invalid").should be_false
120
120
  end
121
121
 
122
+ it "Update BillAgreement" do
123
+ @response = @api.BillAgreementUpdate({ :ReferenceID => "testing" })
124
+ @response.should_not be_success
125
+ @response.errors[0].ShortMessage.should eql "Billing Agreement Id or transaction Id is not valid"
126
+ end
127
+
128
+
122
129
  end
123
130
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal-sdk-merchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.106.1
4
+ version: 1.106.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-23 00:00:00.000000000 Z
11
+ date: 2014-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paypal-sdk-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.3
19
+ version: 0.2.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.3
26
+ version: 0.2.7
27
27
  description: The PayPal Merchant SDK provides Ruby APIs for processing payments, recurring
28
28
  payments, subscriptions and transactions using PayPal's Merchant APIs, which include
29
29
  Express Checkout, Recurring Payments, Direct Payment and Transactional APIs.
@@ -33,22 +33,22 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - spec/config/cert_key.pem
37
- - spec/config/paypal.yml
38
- - spec/merchant_samples_spec.rb
39
- - spec/merchant_spec.rb
40
- - spec/spec_helper.rb
36
+ - Gemfile
37
+ - README.md
38
+ - Rakefile
39
+ - lib/paypal-sdk-merchant.rb
40
+ - lib/paypal-sdk/merchant.rb
41
41
  - lib/paypal-sdk/merchant/api.rb
42
42
  - lib/paypal-sdk/merchant/data_types.rb
43
43
  - lib/paypal-sdk/merchant/data_types_with_bugfix.rb
44
44
  - lib/paypal-sdk/merchant/services.rb
45
45
  - lib/paypal-sdk/merchant/urls.rb
46
46
  - lib/paypal-sdk/merchant/version.rb
47
- - lib/paypal-sdk/merchant.rb
48
- - lib/paypal-sdk-merchant.rb
49
- - Rakefile
50
- - README.md
51
- - Gemfile
47
+ - spec/config/cert_key.pem
48
+ - spec/config/paypal.yml
49
+ - spec/merchant_samples_spec.rb
50
+ - spec/merchant_spec.rb
51
+ - spec/spec_helper.rb
52
52
  homepage: https://developer.paypal.com
53
53
  licenses:
54
54
  - PayPal SDK License
@@ -59,17 +59,17 @@ require_paths:
59
59
  - lib
60
60
  required_ruby_version: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - '>='
62
+ - - ">="
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  requirements: []
71
71
  rubyforge_project:
72
- rubygems_version: 2.0.4
72
+ rubygems_version: 2.2.1
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: PayPal Merchant SDK
@@ -79,3 +79,4 @@ test_files:
79
79
  - spec/merchant_samples_spec.rb
80
80
  - spec/merchant_spec.rb
81
81
  - spec/spec_helper.rb
82
+ has_rdoc: