paypal-sdk-rest 1.7.2 → 1.7.3

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
- SHA1:
3
- metadata.gz: 5f46029f31010a2e424a314fd2f326efcb4661c0
4
- data.tar.gz: 41892d50d32f53ec93fa740cd797dea74f8e65f1
2
+ SHA256:
3
+ metadata.gz: 2cfaf3280bf9a8f5834cf63a11c11f720792a299a280a8e9488cff71b190f584
4
+ data.tar.gz: baf90a20b7ea50d530adba7f2dc0749980985ec750ce097926836de6ec022514
5
5
  SHA512:
6
- metadata.gz: ccfb65353fbd4b5ccb65521012756afecadfe958efa3c39207425cec5fa2bbe4eba0ebaedd96871ceb3548b62c6c1d3a395bddc6f06cbeb4fb301b8b9dab4ca8
7
- data.tar.gz: 302b38701bed1734ee663a81cafff902add5e07176b701d1b2e6cb6d7c864f1dbee6e4425301a06f58fd3908ae29372f6b55b9b3eb1b0eda8de8d8a6c7fc17c4
6
+ metadata.gz: a80282311eced59baa9c1d83a84f8e6f259917058c801f2e5f003a430dd8f69a659b1431c3dd42adb9b60bb0793891f86fe0f71124c11e11e93f3288193407c2
7
+ data.tar.gz: 1a2ecc8a0e1f904be412cd22c6d690fcda9417f4c666a0846e277d094e78e9214e8ff61948aaa52725eb54761ff352fe0672e3190612c28874301f01abe06e20
data/README.md CHANGED
@@ -3,6 +3,10 @@
3
3
 
4
4
  The PayPal REST SDK provides Ruby APIs to create, process and manage payment.
5
5
 
6
+
7
+ ## 2.0 Release Candidate!
8
+ 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!
9
+
6
10
  ## Prerequisites
7
11
  - Ruby 2.0.0 or above
8
12
  - Bundler
@@ -2495,6 +2495,97 @@ module PayPal::SDK
2495
2495
  object_of :temporary, Boolean
2496
2496
  end
2497
2497
  end
2498
+
2499
+ class Dispute < Base
2500
+ def self.load_members
2501
+ object_of :dispute_id, String
2502
+ object_of :create_time, String
2503
+ object_of :update_time, String
2504
+ array_of :disputed_transactions, TransactionInfo
2505
+ object_of :reason, String
2506
+ object_of :status, String
2507
+ object_of :dispute_amount, Money
2508
+ object_of :external_reason_code, String
2509
+ object_of :dispute_outcome, DisputeOutcome
2510
+ object_of :dispute_life_cycle_stage, String
2511
+ object_of :dispute_channel, String
2512
+ array_of :messages, Messages
2513
+ object_of :buyer_response_due_date, String
2514
+ object_of :seller_response_due_date, String
2515
+ object_of :offer, Offer
2516
+ array_of :links, Links
2517
+ end
2518
+ end
2519
+
2520
+ class TransactionInfo < Base
2521
+ def self.load_members
2522
+ object_of :buyer_transaction_id, String
2523
+ object_of :seller_transaction_id, String
2524
+ object_of :create_time, String
2525
+ object_of :transaction_status, String
2526
+ object_of :gross_amount, Money
2527
+ object_of :invoice_number, String
2528
+ object_of :custom, String
2529
+ object_of :buyer, Buyer
2530
+ object_of :seller, Seller
2531
+ array_of :items, ItemInfo
2532
+ end
2533
+ end
2534
+
2535
+ class Buyer < Base
2536
+ def self.load_members
2537
+ object_of :email, String
2538
+ object_of :name, String
2539
+ end
2540
+ end
2541
+
2542
+ class Seller < Base
2543
+ def self.load_members
2544
+ object_of :email, String
2545
+ object_of :merchant_id, String
2546
+ object_of :name, String
2547
+ end
2548
+ end
2549
+
2550
+ class ItemInfo < Base
2551
+ def self.load_members
2552
+ object_of :item_id, String
2553
+ object_of :partner_transaction_id, String
2554
+ object_of :reason, String
2555
+ object_of :dispute_amount, Money
2556
+ object_of :notes, String
2557
+ end
2558
+ end
2559
+
2560
+ class Money < Base
2561
+ def self.load_members
2562
+ object_of :currency_code, String
2563
+ object_of :value, String
2564
+ end
2565
+ end
2566
+
2567
+ class DisputeOutcome < Base
2568
+ def self.load_members
2569
+ object_of :outcome_code, String
2570
+ object_of :amount_refunded, Money
2571
+ end
2572
+ end
2573
+
2574
+ class Messages < Base
2575
+ def self.load_members
2576
+ object_of :posted_by, String
2577
+ object_of :time_posted, String
2578
+ object_of :content, String
2579
+ end
2580
+ end
2581
+
2582
+ class Offer < Base
2583
+ def self.load_members
2584
+ object_of :buyer_requested_amount, Money
2585
+ object_of :seller_offered_amount, Money
2586
+ object_of :offer_type, String
2587
+ end
2588
+ end
2498
2589
 
2499
2590
  constants.each do |data_type_klass|
2500
2591
  data_type_klass = const_get(data_type_klass)
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module REST
4
- VERSION = "1.7.2"
4
+ VERSION = "1.7.3"
5
5
  end
6
6
  end
7
7
  end
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.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-03 00:00:00.000000000 Z
11
+ date: 2018-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -119,8 +119,6 @@ files:
119
119
  - spec/core/logging_spec.rb
120
120
  - spec/core/openid_connect_spec.rb
121
121
  - spec/invoice_examples_spec.rb
122
- - spec/log/http.log
123
- - spec/log/rest_http.log
124
122
  - spec/payments_examples_spec.rb
125
123
  - spec/payouts_examples_spec.rb
126
124
  - spec/rest/data_types_spec.rb
@@ -150,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
148
  version: '0'
151
149
  requirements: []
152
150
  rubyforge_project:
153
- rubygems_version: 2.6.14
151
+ rubygems_version: 2.7.6
154
152
  signing_key:
155
153
  specification_version: 4
156
154
  summary: The PayPal REST SDK provides Ruby APIs to create, process and manage payment.
@@ -166,8 +164,6 @@ test_files:
166
164
  - spec/core/logging_spec.rb
167
165
  - spec/core/openid_connect_spec.rb
168
166
  - spec/invoice_examples_spec.rb
169
- - spec/log/http.log
170
- - spec/log/rest_http.log
171
167
  - spec/payments_examples_spec.rb
172
168
  - spec/payouts_examples_spec.rb
173
169
  - spec/rest/data_types_spec.rb
File without changes
File without changes