paypal-sdk-rest 2.0.0.rc1 → 2.0.0.rc2
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 +2 -1
- data/README.md +10 -4
- data/lib/lib.rb +7 -0
- data/lib/paypal-sdk-rest.rb +1 -0
- data/lib/paypal/core/paypal_http_client.rb +1 -0
- data/lib/paypal/core/version.rb +1 -1
- data/lib/v1/customer_disputes/dispute_accept_claim_request.rb +35 -0
- data/lib/v1/customer_disputes/dispute_adjudicate_request.rb +35 -0
- data/lib/v1/customer_disputes/dispute_appeal_request.rb +35 -0
- data/lib/v1/customer_disputes/dispute_get_request.rb +31 -0
- data/lib/v1/customer_disputes/dispute_list_request.rb +59 -0
- data/lib/v1/customer_disputes/dispute_provide_evidence_request.rb +35 -0
- data/lib/v1/customer_disputes/dispute_require_evidence_request.rb +35 -0
- data/lib/v1/payments/authorization_capture_request.rb +3 -3
- data/lib/v1/payments/authorization_get_request.rb +3 -3
- data/lib/v1/payments/authorization_reauthorize_request.rb +3 -3
- data/lib/v1/payments/authorization_void_request.rb +7 -3
- data/lib/v1/payments/capture_get_request.rb +3 -3
- data/lib/v1/payments/capture_refund_request.rb +7 -3
- data/lib/v1/payments/order_authorize_request.rb +3 -3
- data/lib/v1/payments/order_capture_request.rb +3 -3
- data/lib/v1/payments/order_get_request.rb +3 -3
- data/lib/v1/payments/order_void_request.rb +7 -3
- data/lib/v1/payments/payment_create_request.rb +8 -4
- data/lib/v1/payments/payment_execute_request.rb +11 -3
- data/lib/v1/payments/payment_get_request.rb +3 -3
- data/lib/v1/payments/payment_list_request.rb +3 -3
- data/lib/v1/payments/payment_update_request.rb +4 -4
- data/lib/v1/payments/refund_get_request.rb +3 -3
- data/lib/v1/payments/sale_get_request.rb +3 -3
- data/lib/v1/payments/sale_refund_request.rb +8 -4
- data/spec/integration/v1/billing_agreements/agreement_create_spec.rb +7 -1
- data/spec/integration/v1/customer_disputes/dispute_accept_claim_spec.rb +26 -0
- data/spec/integration/v1/customer_disputes/dispute_adjudicate_spec.rb +24 -0
- data/spec/integration/v1/customer_disputes/dispute_appeal_spec.rb +33 -0
- data/spec/integration/v1/customer_disputes/dispute_get_spec.rb +19 -0
- data/spec/integration/v1/customer_disputes/dispute_list_spec.rb +17 -0
- data/spec/integration/v1/customer_disputes/dispute_provide_evidence_spec.rb +32 -0
- data/spec/integration/v1/customer_disputes/dispute_require_evidence_spec.rb +24 -0
- data/spec/integration/v1/customer_disputes/test_image.png +0 -0
- data/spec/integration/v1/payments/payments_helper.rb +7 -1
- data/spec/integration/v1/webhooks/webhook_helper.rb +0 -1
- data/spec/log/http.log +0 -0
- data/spec/log/rest_http.log +0 -0
- data/spec/spec_helper.rb +3 -0
- data/spec/unit/paypal_http_client_spec.rb +8 -0
- metadata +33 -5
data/spec/log/http.log
ADDED
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require_relative "../lib/lib.rb"
|
2
2
|
require 'pp'
|
3
|
+
require 'webmock/rspec'
|
3
4
|
|
4
5
|
# This file was generated by the `rspec --init` command. Conventionally, all
|
5
6
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
@@ -104,3 +105,5 @@ RSpec.configure do |config|
|
|
104
105
|
Kernel.srand config.seed
|
105
106
|
=end
|
106
107
|
end
|
108
|
+
|
109
|
+
WebMock.allow_net_connect!
|
@@ -10,6 +10,10 @@ describe PayPal::PayPalHttpClient do
|
|
10
10
|
@httpClient = PayPal::PayPalHttpClient.new(@environment)
|
11
11
|
end
|
12
12
|
|
13
|
+
after do
|
14
|
+
WebMock.disable!
|
15
|
+
end
|
16
|
+
|
13
17
|
# Helpers
|
14
18
|
def stubAccessToken
|
15
19
|
access_token_json = JSON.generate({
|
@@ -39,6 +43,10 @@ describe PayPal::PayPalHttpClient do
|
|
39
43
|
WebMock.enable!
|
40
44
|
end
|
41
45
|
|
46
|
+
after(:each) do
|
47
|
+
WebMock.disable!
|
48
|
+
end
|
49
|
+
|
42
50
|
it 'fetches access token if not yet fetched' do
|
43
51
|
access_token_stub = stubAccessToken
|
44
52
|
|
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: 2.0.0.
|
4
|
+
version: 2.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: braintreehttp
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.5.0
|
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.
|
26
|
+
version: 0.5.0
|
27
27
|
description: The PayPal REST SDK provides Ruby APIs to create, process and manage
|
28
28
|
payment.
|
29
29
|
email:
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- Gemfile
|
36
36
|
- README.md
|
37
37
|
- lib/lib.rb
|
38
|
+
- lib/paypal-sdk-rest.rb
|
38
39
|
- lib/paypal/core/access_token.rb
|
39
40
|
- lib/paypal/core/paypal_environment.rb
|
40
41
|
- lib/paypal/core/paypal_http_client.rb
|
@@ -54,6 +55,13 @@ files:
|
|
54
55
|
- lib/v1/billing_plans/plan_get_request.rb
|
55
56
|
- lib/v1/billing_plans/plan_list_request.rb
|
56
57
|
- lib/v1/billing_plans/plan_update_request.rb
|
58
|
+
- lib/v1/customer_disputes/dispute_accept_claim_request.rb
|
59
|
+
- lib/v1/customer_disputes/dispute_adjudicate_request.rb
|
60
|
+
- lib/v1/customer_disputes/dispute_appeal_request.rb
|
61
|
+
- lib/v1/customer_disputes/dispute_get_request.rb
|
62
|
+
- lib/v1/customer_disputes/dispute_list_request.rb
|
63
|
+
- lib/v1/customer_disputes/dispute_provide_evidence_request.rb
|
64
|
+
- lib/v1/customer_disputes/dispute_require_evidence_request.rb
|
57
65
|
- lib/v1/identity/user_consent.rb
|
58
66
|
- lib/v1/identity/userinfo_get_request.rb
|
59
67
|
- lib/v1/invoices/invoice_cancel_request.rb
|
@@ -129,6 +137,14 @@ files:
|
|
129
137
|
- spec/integration/v1/billing_plans/plan_helper.rb
|
130
138
|
- spec/integration/v1/billing_plans/plan_list_spec.rb
|
131
139
|
- spec/integration/v1/billing_plans/plan_update_spec.rb
|
140
|
+
- spec/integration/v1/customer_disputes/dispute_accept_claim_spec.rb
|
141
|
+
- spec/integration/v1/customer_disputes/dispute_adjudicate_spec.rb
|
142
|
+
- spec/integration/v1/customer_disputes/dispute_appeal_spec.rb
|
143
|
+
- spec/integration/v1/customer_disputes/dispute_get_spec.rb
|
144
|
+
- spec/integration/v1/customer_disputes/dispute_list_spec.rb
|
145
|
+
- spec/integration/v1/customer_disputes/dispute_provide_evidence_spec.rb
|
146
|
+
- spec/integration/v1/customer_disputes/dispute_require_evidence_spec.rb
|
147
|
+
- spec/integration/v1/customer_disputes/test_image.png
|
132
148
|
- spec/integration/v1/identity/userinfo_get_spec.rb
|
133
149
|
- spec/integration/v1/invoices/invoice_cancel_spec.rb
|
134
150
|
- spec/integration/v1/invoices/invoice_create_spec.rb
|
@@ -198,6 +214,8 @@ files:
|
|
198
214
|
- spec/integration/v1/webhooks/webhook_list_spec.rb
|
199
215
|
- spec/integration/v1/webhooks/webhook_update_spec.rb
|
200
216
|
- spec/integration/v1/webhooks/webhook_verify_signature_spec.rb
|
217
|
+
- spec/log/http.log
|
218
|
+
- spec/log/rest_http.log
|
201
219
|
- spec/spec_helper.rb
|
202
220
|
- spec/unit/paypal_http_client_spec.rb
|
203
221
|
homepage: https://developer.paypal.com
|
@@ -220,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
238
|
version: 1.3.1
|
221
239
|
requirements: []
|
222
240
|
rubyforge_project:
|
223
|
-
rubygems_version: 2.
|
241
|
+
rubygems_version: 2.6.11
|
224
242
|
signing_key:
|
225
243
|
specification_version: 4
|
226
244
|
summary: The PayPal REST SDK provides Ruby APIs to create, process and manage payment.
|
@@ -232,6 +250,14 @@ test_files:
|
|
232
250
|
- spec/integration/v1/billing_plans/plan_helper.rb
|
233
251
|
- spec/integration/v1/billing_plans/plan_list_spec.rb
|
234
252
|
- spec/integration/v1/billing_plans/plan_update_spec.rb
|
253
|
+
- spec/integration/v1/customer_disputes/dispute_accept_claim_spec.rb
|
254
|
+
- spec/integration/v1/customer_disputes/dispute_adjudicate_spec.rb
|
255
|
+
- spec/integration/v1/customer_disputes/dispute_appeal_spec.rb
|
256
|
+
- spec/integration/v1/customer_disputes/dispute_get_spec.rb
|
257
|
+
- spec/integration/v1/customer_disputes/dispute_list_spec.rb
|
258
|
+
- spec/integration/v1/customer_disputes/dispute_provide_evidence_spec.rb
|
259
|
+
- spec/integration/v1/customer_disputes/dispute_require_evidence_spec.rb
|
260
|
+
- spec/integration/v1/customer_disputes/test_image.png
|
235
261
|
- spec/integration/v1/identity/userinfo_get_spec.rb
|
236
262
|
- spec/integration/v1/invoices/invoice_cancel_spec.rb
|
237
263
|
- spec/integration/v1/invoices/invoice_create_spec.rb
|
@@ -301,5 +327,7 @@ test_files:
|
|
301
327
|
- spec/integration/v1/webhooks/webhook_list_spec.rb
|
302
328
|
- spec/integration/v1/webhooks/webhook_update_spec.rb
|
303
329
|
- spec/integration/v1/webhooks/webhook_verify_signature_spec.rb
|
330
|
+
- spec/log/http.log
|
331
|
+
- spec/log/rest_http.log
|
304
332
|
- spec/spec_helper.rb
|
305
333
|
- spec/unit/paypal_http_client_spec.rb
|