paypal-sdk-rest 1.7.3 → 1.7.5

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
  SHA256:
3
- metadata.gz: 2cfaf3280bf9a8f5834cf63a11c11f720792a299a280a8e9488cff71b190f584
4
- data.tar.gz: baf90a20b7ea50d530adba7f2dc0749980985ec750ce097926836de6ec022514
3
+ metadata.gz: ceddc9047784a7073f8972215a244fd2d836ce6e01ff5a6607f47f121037ea5c
4
+ data.tar.gz: 161ba58a2ab0ed0d76f5d0c8eb454d9771e1f70dd1f843377abee0e16ed7dc82
5
5
  SHA512:
6
- metadata.gz: a80282311eced59baa9c1d83a84f8e6f259917058c801f2e5f003a430dd8f69a659b1431c3dd42adb9b60bb0793891f86fe0f71124c11e11e93f3288193407c2
7
- data.tar.gz: 1a2ecc8a0e1f904be412cd22c6d690fcda9417f4c666a0846e277d094e78e9214e8ff61948aaa52725eb54761ff352fe0672e3190612c28874301f01abe06e20
6
+ metadata.gz: 78c5333220b0e8f3706145337337f6012481c5ace6717f9b22e3103149ddabd712f0129aafec717e6aa2bc8673895278949ee4b764036aea839683239997e67c
7
+ data.tar.gz: 9bb769e8ddfe00d3313c2adf029094bd15be4a044e6e87125f146d3d552e9c962d73f0bb749a60088421ed536abfc5fcba5d4ffbe58fbd16bb3eedaa998908aa
data/README.md CHANGED
@@ -1,8 +1,17 @@
1
+ # Deprecation Notice:
2
+ This SDK is deprecated. You can continue to use it, but no new features or support requests will be accepted.
3
+ For alternatives, please visit [the current SDK homepage on the PayPal Developer Portal](https://developer.paypal.com/docs/api/rest-sdks/)
4
+
1
5
  ## PayPal REST API Ruby SDK [![Build Status](https://travis-ci.org/paypal/PayPal-Ruby-SDK.svg?branch=master)](https://travis-ci.org/paypal/PayPal-Ruby-SDK) [![Coverage Status](https://coveralls.io/repos/github/paypal/PayPal-Ruby-SDK/badge.svg?branch=master)](https://coveralls.io/github/paypal/PayPal-Ruby-SDK?branch=master)
2
6
 
3
7
 
4
8
  The PayPal REST SDK provides Ruby APIs to create, process and manage payment.
5
9
 
10
+ ## PayPal Checkout v2
11
+ Please note that if you are integrating with PayPal Checkout, this SDK and corresponding API [v1/payments](https://developer.paypal.com/docs/api/payments/v1/) are in the process of being deprecated.
12
+
13
+ We recommend that you integrate with API [v2/checkout/orders](https://developer.paypal.com/docs/api/orders/v2/) and [v2/payments](https://developer.paypal.com/docs/api/payments/v2/). Please refer to the [Checkout Ruby SDK](https://github.com/paypal/Checkout-Ruby-SDK) to continue with the integration.
14
+
6
15
 
7
16
  ## 2.0 Release Candidate!
8
17
  We're releasing a [brand new version of our SDK!](https://github.com/paypal/PayPal-Ruby-SDK/tree/2.0-beta) 2.0 is currently at release candidate status, and represents a full refactor, with the goal of making all of our APIs extremely easy to use. 2.0 includes all of the existing APIs (except payouts), and includes the new Orders API (disputes and Marketplace coming soon). Check out the [FAQ and migration guide](https://github.com/paypal/PayPal-Ruby-SDK/tree/2.0-beta/docs), and let us know if you have any suggestions or issues!
@@ -1713,6 +1713,7 @@ module PayPal::SDK
1713
1713
  object_of :note, String
1714
1714
  object_of :receiver, String
1715
1715
  object_of :sender_item_id, String
1716
+ object_of :recipient_wallet, String
1716
1717
  end
1717
1718
 
1718
1719
  include RequestDataType
@@ -2495,7 +2496,7 @@ module PayPal::SDK
2495
2496
  object_of :temporary, Boolean
2496
2497
  end
2497
2498
  end
2498
-
2499
+
2499
2500
  class Dispute < Base
2500
2501
  def self.load_members
2501
2502
  object_of :dispute_id, String
@@ -2538,7 +2539,7 @@ module PayPal::SDK
2538
2539
  object_of :name, String
2539
2540
  end
2540
2541
  end
2541
-
2542
+
2542
2543
  class Seller < Base
2543
2544
  def self.load_members
2544
2545
  object_of :email, String
@@ -2570,7 +2571,7 @@ module PayPal::SDK
2570
2571
  object_of :amount_refunded, Money
2571
2572
  end
2572
2573
  end
2573
-
2574
+
2574
2575
  class Messages < Base
2575
2576
  def self.load_members
2576
2577
  object_of :posted_by, String
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module REST
4
- VERSION = "1.7.3"
4
+ VERSION = "1.7.4"
5
5
  end
6
6
  end
7
7
  end
@@ -2,6 +2,25 @@ require "spec_helper"
2
2
 
3
3
  describe "Payouts", :integration => true do
4
4
 
5
+ PayoutVenmoAttributes = {
6
+ :sender_batch_header => {
7
+ :sender_batch_id => SecureRandom.hex(8)
8
+ },
9
+ :items => [
10
+ {
11
+ :recipient_type => 'PHONE',
12
+ :amount => {
13
+ :value => '1.0',
14
+ :currency => 'USD'
15
+ },
16
+ :note => 'Thanks for your patronage!',
17
+ :sender_item_id => '2014031400023',
18
+ :receiver => '5551232368',
19
+ :recipient_wallet => 'VENMO'
20
+ }
21
+ ]
22
+ }
23
+
5
24
  PayoutAttributes = {
6
25
  :sender_batch_header => {
7
26
  :sender_batch_id => SecureRandom.hex(8),
@@ -21,6 +40,12 @@ describe "Payouts", :integration => true do
21
40
  ]
22
41
  }
23
42
 
43
+ it "create venmo payout" do
44
+ $payout = PayPal::SDK::REST::Payout.new(PayoutVenmoAttributes)
45
+ $payout_batch = $payout.create
46
+ expect($payout_batch).to be_truthy
47
+ end
48
+
24
49
  it "create payout sync" do
25
50
  $payout = PayPal::SDK::REST::Payout.new(PayoutAttributes)
26
51
  $payout_batch = $payout.create(true)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal-sdk-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-06 00:00:00.000000000 Z
11
+ date: 2023-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -52,8 +52,8 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.0'
55
- description: The PayPal REST SDK provides Ruby APIs to create, process and manage
56
- payment.
55
+ description: "[Deprecated] The PayPal REST SDK provides Ruby APIs to create, process
56
+ and manage payment."
57
57
  email:
58
58
  - DL-PP-RUBY-SDK@paypal.com
59
59
  executables: []
@@ -132,7 +132,7 @@ homepage: https://developer.paypal.com
132
132
  licenses:
133
133
  - PayPal SDK License
134
134
  metadata: {}
135
- post_install_message:
135
+ post_install_message:
136
136
  rdoc_options: []
137
137
  require_paths:
138
138
  - lib
@@ -147,11 +147,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []
150
- rubyforge_project:
151
- rubygems_version: 2.7.6
152
- signing_key:
150
+ rubygems_version: 3.4.10
151
+ signing_key:
153
152
  specification_version: 4
154
- summary: The PayPal REST SDK provides Ruby APIs to create, process and manage payment.
153
+ summary: Deprecated.
155
154
  test_files:
156
155
  - spec/README.md
157
156
  - spec/config/cacert.pem