paypal-sdk-rest 1.7.3 → 1.7.4

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
- SHA256:
3
- metadata.gz: 2cfaf3280bf9a8f5834cf63a11c11f720792a299a280a8e9488cff71b190f584
4
- data.tar.gz: baf90a20b7ea50d530adba7f2dc0749980985ec750ce097926836de6ec022514
2
+ SHA1:
3
+ metadata.gz: e9e80fb1f052a2fc5cbca599b00aec68263f24d8
4
+ data.tar.gz: '046494835138859f2c9db9217e25781de5321028'
5
5
  SHA512:
6
- metadata.gz: a80282311eced59baa9c1d83a84f8e6f259917058c801f2e5f003a430dd8f69a659b1431c3dd42adb9b60bb0793891f86fe0f71124c11e11e93f3288193407c2
7
- data.tar.gz: 1a2ecc8a0e1f904be412cd22c6d690fcda9417f4c666a0846e277d094e78e9214e8ff61948aaa52725eb54761ff352fe0672e3190612c28874301f01abe06e20
6
+ metadata.gz: 34bcc8c9be7743b4bbf37a0d973cda853740e58996accea09be690e03902de30859d5a2b86a48f3c235951dc37b92da2c05b19b4b6e3d44d6b2f1981e5fd517d
7
+ data.tar.gz: 5ee63c4d2ecdde4280916ab637a4a8d05d47da69ffc38faf91cc5d1734f00890c1a0e1dbf4cb64880a551ba45c8fa8a9f0bcd2bdf356ba194591225bb12765c3
data/README.md CHANGED
@@ -3,6 +3,11 @@
3
3
 
4
4
  The PayPal REST SDK provides Ruby APIs to create, process and manage payment.
5
5
 
6
+ ## PayPal Checkout v2
7
+ 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.
8
+
9
+ 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.
10
+
6
11
 
7
12
  ## 2.0 Release Candidate!
8
13
  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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-06 00:00:00.000000000 Z
11
+ date: 2020-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.7.6
151
+ rubygems_version: 2.5.2.3
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: The PayPal REST SDK provides Ruby APIs to create, process and manage payment.