paypal-sdk-merchant 1.106.1 → 1.106.2
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 +4 -4
 - data/Gemfile +4 -1
 - data/lib/paypal-sdk/merchant/api.rb +15 -0
 - data/lib/paypal-sdk/merchant/version.rb +1 -1
 - data/spec/merchant_samples_spec.rb +7 -0
 - metadata +20 -19
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 2d11b78af8737610720839f1160e860739e6c80e
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 23c4134d0776a07a486d720203f14d94626da409
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: dfdf501beb45afd45423373758af33b7c2bab0d5903f3cc449d52731d4259a3788d56aedaf07b7d092f538d528d221fb26e41fbb15f12d46534df86997b9728e
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 1dfb9f165aef28f2c1aa7738ab3c566575db012a8e134b23116ae993ee0a18392b5b4b5c7074d3f03a2effc96b85e5939027595b1c86ffc1a17188aac83da337
         
     | 
    
        data/Gemfile
    CHANGED
    
    
| 
         @@ -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
         
     | 
| 
         @@ -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. 
     | 
| 
      
 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:  
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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 
     | 
    
         
            -
            -  
     | 
| 
       37 
     | 
    
         
            -
            -  
     | 
| 
       38 
     | 
    
         
            -
            -  
     | 
| 
       39 
     | 
    
         
            -
            -  
     | 
| 
       40 
     | 
    
         
            -
            -  
     | 
| 
      
 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 
     | 
    
         
            -
            -  
     | 
| 
       48 
     | 
    
         
            -
            -  
     | 
| 
       49 
     | 
    
         
            -
            -  
     | 
| 
       50 
     | 
    
         
            -
            -  
     | 
| 
       51 
     | 
    
         
            -
            -  
     | 
| 
      
 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. 
     | 
| 
      
 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: 
         
     |