paypal-sdk-rest 0.7.0 → 0.7.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a0c3c41b85405bed68ea25125bb269beae7b8fd
4
- data.tar.gz: 8e203b322aeb57993fc2c99fffa10551b530a225
3
+ metadata.gz: 8fcdb59412d14218d025ae231190bdc8ce269bff
4
+ data.tar.gz: c979839e42604232ff4ab12e26b17ee529cc7b8c
5
5
  SHA512:
6
- metadata.gz: 637e1f6d6e52ffbaea626ea353e95d8f4150e4d08d131545b28f947bd609de7d7826708038b30fe2e14dd5513f3c398762257dfa5f81f53ccc2cfe7a766d5b0a
7
- data.tar.gz: e64e2061bd24461429d872614c45a37db8dc75d521d34de20508e9b4106a23ea2461901e31406adecf4b149891f7839dc52e09c9d3d8e67e0a08b2cf7702cb73
6
+ metadata.gz: d9cc45c031c8ac16a1265120d0911f1bb8dd45ec2be26f69eac0660d25f2f430827ebb607ac8bb0839696c970184609411d366157c468510dce87dab1eaa8bf1
7
+ data.tar.gz: 94b583289f51883e7d1bbe110f81b9f0846cdeaaf03fb63288e5183b59463ddca1d0fc8aa6bb008705f3f140979613e8c94001f4991d60039e054c0f4fcea89d
data/README.md CHANGED
@@ -142,11 +142,15 @@ payment = Payment.find("PAY-57363176S1057143SKE2HO3A")
142
142
 
143
143
  if payment.execute( :payer_id => "DUFRQ8GWYMJXC" )
144
144
  # Success Message
145
+ # Note that you'll need to `Payment.find` the payment again to access user info like shipping address
145
146
  else
146
147
  payment.error # Error Hash
147
148
  end
148
149
  ```
149
150
 
151
+ ## Create Future Payment
152
+ [Future Payments](https://developer.paypal.com/docs/integration/mobile/make-future-payment/) sample is available [here](https://github.com/paypal/rest-api-sdk-ruby/blob/master/spec/payments_examples_spec.rb#L149)
153
+
150
154
  ## OpenID Connect
151
155
 
152
156
  ```ruby
@@ -343,6 +343,8 @@ module PayPal::SDK
343
343
  object_of :state, String
344
344
  object_of :parent_payment, String
345
345
  object_of :valid_until, String
346
+ object_of :protection_eligibility, String
347
+ object_of :payment_mode, String
346
348
  array_of :links, Links
347
349
  end
348
350
 
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module REST
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
6
6
  end
7
7
  end
data/spec/log/http.log CHANGED
@@ -2,71 +2,66 @@ opening connection to api.sandbox.paypal.com:443...
2
2
  opened
3
3
  starting SSL for api.sandbox.paypal.com:443...
4
4
  SSL established
5
- <- "POST /v1/invoicing/invoices HTTP/1.1\r\nAuthorization: Bearer A015.wU5Y.5Tt1X0UhVBpUcFySaug5JAAGqJxoEZGs1SFgI\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 0.6.1 (paypal-sdk-core 0.2.10; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: e2e7316e-f41a-41fb-a9f7-ac152360c219\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 243\r\n\r\n"
5
+ <- "POST /v1/invoicing/invoices HTTP/1.1\r\nAuthorization: Bearer A015ZOuHwVDp9D410nquPChSV0YLEEvWXfKQq1P.QCMcvpU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 0.7.1 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 27075a37-6d07-42c2-9b56-e780fdba98e6\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 243\r\n\r\n"
6
6
  <- "{\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"items\":[{\"name\":\"Sutures\",\"quantity\":100.0,\"unit_price\":{\"currency\":\"USD\",\"value\":\"5\"}}],\"note\":\"Medical Invoice 16 Jul, 2013 PST\"}"
7
- -> "HTTP/1.1 401 Unauthorized\r\n"
7
+ -> "HTTP/1.1 201 Created\r\n"
8
8
  -> "Server: Apache-Coyote/1.1\r\n"
9
- -> "PROXY_SERVER_INFO: host=slcsbjava3.slc.paypal.com;threadId=146798\r\n"
10
- -> "Paypal-Debug-Id: 7bddeee2e6a9d\r\n"
11
- -> "Date: Tue, 01 Jul 2014 15:14:23 GMT\r\n"
12
- -> "WWW-Authenticate: OAuth\r\n"
9
+ -> "PROXY_SERVER_INFO: host=slcsbjava4.slc.paypal.com;threadId=8717\r\n"
10
+ -> "Paypal-Debug-Id: 4a2d77327d664\r\n"
11
+ -> "Date: Wed, 08 Oct 2014 14:58:50 GMT\r\n"
12
+ -> "Location: https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-3YLW-4TQ9-WUCA-YRMN\r\n"
13
13
  -> "Content-Type: application/json\r\n"
14
- -> "Content-Length: 99\r\n"
14
+ -> "Content-Length: 510\r\n"
15
15
  -> "\r\n"
16
- reading 99 bytes...
17
- -> "{\"name\":\"AUTHORIZATION_ERROR\",\"message\":\"Authorization error occurred.\",\"debug_id\":\"7bddeee2e6a9d\"}"
18
- read 99 bytes
16
+ reading 510 bytes...
17
+ -> "{\"id\":\"INV2-3YLW-4TQ9-WUCA-YRMN\",\"number\":\"2429\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"items\":[{\"name\":\"Sutures\",\"quantity\":100.0,\"unit_price\":{\"currency\":\"USD\",\"value\":\"5.00\"}}],\"invoice_date\":\"2014-10-08 PDT\",\"discount\":{\"amount\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"tax_calculated_after_discount\":false,\"tax_inclusive\":false,\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"}}"
18
+ read 510 bytes
19
19
  Conn keep-alive
20
20
  opening connection to api.sandbox.paypal.com:443...
21
21
  opened
22
22
  starting SSL for api.sandbox.paypal.com:443...
23
23
  SSL established
24
- <- "POST /v1/invoicing/invoices HTTP/1.1\r\nAuthorization: Bearer A015BQqJiVFfESfOPuywwMxi0xiRrKvXTZb236CJfsS18og\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 0.6.1 (paypal-sdk-core 0.2.10; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: e2e7316e-f41a-41fb-a9f7-ac152360c219\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 243\r\n\r\n"
25
- <- "{\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"items\":[{\"name\":\"Sutures\",\"quantity\":100.0,\"unit_price\":{\"currency\":\"USD\",\"value\":\"5\"}}],\"note\":\"Medical Invoice 16 Jul, 2013 PST\"}"
26
- -> "HTTP/1.1 401 Unauthorized\r\n"
27
- -> "Server: Apache-Coyote/1.1\r\n"
28
- -> "PROXY_SERVER_INFO: host=slcsbjava3.slc.paypal.com;threadId=262\r\n"
29
- -> "Paypal-Debug-Id: d1f9e910e146e\r\n"
30
- -> "Date: Tue, 01 Jul 2014 15:14:27 GMT\r\n"
31
- -> "WWW-Authenticate: OAuth\r\n"
32
- -> "Content-Type: application/json\r\n"
33
- -> "Content-Length: 99\r\n"
34
- -> "\r\n"
35
- reading 99 bytes...
36
- -> "{\"name\":\"AUTHORIZATION_ERROR\",\"message\":\"Authorization error occurred.\",\"debug_id\":\"d1f9e910e146e\"}"
37
- read 99 bytes
38
- Conn keep-alive
39
- opening connection to api.sandbox.paypal.com:443...
40
- opened
41
- starting SSL for api.sandbox.paypal.com:443...
42
- SSL established
43
- <- "GET /v1/invoicing/invoices/?total_count_required=true HTTP/1.1\r\nAuthorization: Bearer A015BQqJiVFfESfOPuywwMxi0xiRrKvXTZb236CJfsS18og\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 0.6.1 (paypal-sdk-core 0.2.10; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
24
+ <- "GET /v1/invoicing/invoices/?total_count_required=true HTTP/1.1\r\nAuthorization: Bearer A015ZOuHwVDp9D410nquPChSV0YLEEvWXfKQq1P.QCMcvpU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 0.7.1 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
44
25
  -> "HTTP/1.1 200 OK\r\n"
45
26
  -> "Server: Apache-Coyote/1.1\r\n"
46
- -> "PROXY_SERVER_INFO: host=slcsbjava3.slc.paypal.com;threadId=696\r\n"
47
- -> "Paypal-Debug-Id: 580295bde1278\r\n"
48
- -> "Date: Tue, 01 Jul 2014 15:14:30 GMT\r\n"
27
+ -> "PROXY_SERVER_INFO: host=slcsbjava1.slc.paypal.com;threadId=1467\r\n"
28
+ -> "Paypal-Debug-Id: ba4e8c46764c9\r\n"
29
+ -> "Date: Wed, 08 Oct 2014 14:58:50 GMT\r\n"
49
30
  -> "Content-Type: application/json\r\n"
50
- -> "Content-Length: 31\r\n"
31
+ -> "Transfer-Encoding: chunked\r\n"
32
+ -> "\r\n"
33
+ -> "2000\r\n"
34
+ reading 8192 bytes...
35
+ -> "{\"total_count\":2418,\"invoices\":[{\"id\":\"INV2-3YLW-4TQ9-WUCA-YRMN\",\"number\":\"2429\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\"},\"invoice_date\":\"2014-10-08 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-08 07:58:50 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-3YLW-4TQ9-WUCA-YRMN\"}},{\"id\":\"INV2-BEZW-SWBS-7339-2QVD\",\"number\":\"2428\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\"},\"invoice_date\":\"2014-10-08 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-08 07:51:09 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-BEZW-SWBS-7339-2QVD\"}},{\"id\":\"INV2-P2AP-FZSP-C9FD-793P\",\"number\":\"2427\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\"},\"invoice_date\":\"2014-10-08 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-08 07:50:01 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-P2AP-FZSP-C9FD-793P\"}},{\"id\":\"INV2-VF6L-NBG3-KV27-NNYC\",\"number\":\"2426\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\"},\"invoice_date\":\"2014-10-08 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-08 07:47:45 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-VF6L-NBG3-KV27-NNYC\"}},{\"id\":\"INV2-G82B-Z3R4-CTNN-MUNZ\",\"number\":\"2425\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\"},\"invoice_date\":\"2014-10-08 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-08 07:43:51 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-G82B-Z3R4-CTNN-MUNZ\"}},{\"id\":\"INV2-L94W-4Y42-W7AF-HP8Z\",\"number\":\"2424\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\"},\"invoice_date\":\"2014-10-06 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-06 08:26:53 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-L94W-4Y42-W7AF-HP8Z\"}},{\"id\":\"INV2-CA7S-C45N-EWJV-MEXW\",\"number\":\"2423\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\"},\"invoice_date\":\"2014-10-06 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-06 08:25:49 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-CA7S-C45N-EWJV-MEXW\"}},{\"id\":\"INV2-24LJ-42KH-CZM6-7ZLG\",\"number\":\"2422\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\"},\"invoice_date\":\"2014-10-06 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-06 07:46:56 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-24LJ-42KH-CZM6-7ZLG\"}},{\"id\":\"INV2-BYMB-Q3BB-9MAZ-EKJR\",\"number\":\"2421\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\"},\"invoice_date\":\"2014-10-06 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-06 07:45:51 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-BYMB-Q3BB-9MAZ-EKJR\"}},{\"id\":\"INV2-NVJ3-87Y5-FW62-MPP5\",\"number\":\"2420\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2014-10-03 PDT\",\"payment_term\":{\"due_date\":\"2014-11-17 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-03 11:03:26 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-NVJ3-87Y5-FW62-MPP5\"}},{\"id\":\"INV2-DMBX-YTHQ-3M5N-X8CE\",\"number\":\"2419\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2014-10-03 PDT\",\"payment_term\":{\"due_date\":\"2014-11-17 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-03 10:27:39 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-DMBX-YTHQ-3M5N-X8CE\"}},{\"id\":\"INV2-8FCW-XL8M-QM8A-B8KV\",\"number\":\"2418\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2014-10-03 PDT\",\"payment_term\":{\"due_date\":\"2014-11-17 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-03 10:27:29 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-8FCW-XL8M-QM8A-B8KV\"}},{\"id\":\"INV2-SLKG-EQKL-MBLJ-6K56\",\"number\":\"2417\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2014-10-03 PDT\",\"payment_term\":{\"due_date\":\"2014-11-17 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-03 10:25:40 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-SLKG-EQKL-MBLJ-6K56\"}},{\"id\":\"INV2-YY8R-N86A-2M7J-F3D3\",\"number\":\"2416\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\"},\"invoice_date\":\"2014-09-30 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-09-30 13:12:13 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-YY8R-N86A-2M7J-F3D3\"}},{\"id\":\"INV2-HZB8-SAZZ-4ERT-6BEG\",\"number\":\"2415\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\""
36
+ read 8192 bytes
37
+ reading 2 bytes...
38
+ -> "\r\n"
39
+ read 2 bytes
40
+ -> "e01\r\n"
41
+ reading 3585 bytes...
42
+ -> "},\"invoice_date\":\"2014-09-27 PDT\",\"payment_term\":{\"due_date\":\"2014-11-11 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-09-27 10:34:23 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-HZB8-SAZZ-4ERT-6BEG\"}},{\"id\":\"INV2-5Z8N-DYF8-NVXY-FMSJ\",\"number\":\"2414\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"exa"
43
+ -> "mple@example.com\",\"first_name\":\"Bob\",\"last_name\":\"Joe\",\"business_name\":\"Bob Shrimp Co.\"},\"invoice_date\":\"2014-09-26 PDT\",\"payment_term\":{\"due_date\":\"2014-11-09 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-09-26 09:59:57 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-5Z8N-DYF8-NVXY-FMSJ\"}},{\"id\":\"INV2-CG7Y-LQC7-7HT4-M7DH\",\"number\":\"2413\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2014-09-26 PDT\",\"payment_term\":{\"due_date\":\"2014-11-10 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-09-26 09:58:04 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-CG7Y-LQC7-7HT4-M7DH\"}},{\"id\":\"INV2-HARL-VNNL-8D74-FHHV\",\"number\":\"2412\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2014-09-26 PDT\",\"payment_term\":{\"due_date\":\"2014-11-10 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-09-26 09:57:15 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-HARL-VNNL-8D74-FHHV\"}},{\"id\":\"INV2-72X3-EHUX-BZ29-UHAN\",\"number\":\"2411\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2014-09-26 PDT\",\"payment_term\":{\"due_date\":\"2014-11-10 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-09-26 09:56:09 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-72X3-EHUX-BZ29-UHAN\"}},{\"id\":\"INV2-D7YS-UZNT-H84W-WJQ9\",\"number\":\"2410\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2014-09-26 PDT\",\"payment_term\":{\"due_date\":\"2014-11-10 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-09-26 09:55:46 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-D7YS-UZNT-H84W-WJQ9\"}}]}"
44
+ read 3585 bytes
45
+ reading 2 bytes...
46
+ -> "\r\n"
47
+ read 2 bytes
48
+ -> "0\r\n"
51
49
  -> "\r\n"
52
- reading 31 bytes...
53
- -> "{\"total_count\":0,\"invoices\":[]}"
54
- read 31 bytes
55
50
  Conn keep-alive
56
51
  opening connection to api.sandbox.paypal.com:443...
57
52
  opened
58
53
  starting SSL for api.sandbox.paypal.com:443...
59
54
  SSL established
60
- <- "GET /v1/invoicing/invoices/INV2-P6VJ-36HG-BBVT-M2MA HTTP/1.1\r\nAuthorization: Bearer A015BQqJiVFfESfOPuywwMxi0xiRrKvXTZb236CJfsS18og\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 0.6.1 (paypal-sdk-core 0.2.10; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
61
- -> "HTTP/1.1 404 Not Found\r\n"
55
+ <- "GET /v1/invoicing/invoices/INV2-P6VJ-36HG-BBVT-M2MA HTTP/1.1\r\nAuthorization: Bearer A015ZOuHwVDp9D410nquPChSV0YLEEvWXfKQq1P.QCMcvpU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 0.7.1 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
56
+ -> "HTTP/1.1 200 OK\r\n"
62
57
  -> "Server: Apache-Coyote/1.1\r\n"
63
- -> "PROXY_SERVER_INFO: host=slcsbjava1.slc.paypal.com;threadId=19195\r\n"
64
- -> "Paypal-Debug-Id: e85ba4289863b\r\n"
65
- -> "Date: Tue, 01 Jul 2014 15:14:31 GMT\r\n"
58
+ -> "PROXY_SERVER_INFO: host=slcsbjava1.slc.paypal.com;threadId=1467\r\n"
59
+ -> "Paypal-Debug-Id: f569fd3077be4\r\n"
60
+ -> "Date: Wed, 08 Oct 2014 14:58:51 GMT\r\n"
66
61
  -> "Content-Type: application/json\r\n"
67
- -> "Content-Length: 140\r\n"
62
+ -> "Content-Length: 1184\r\n"
68
63
  -> "\r\n"
69
- reading 140 bytes...
70
- -> "{\"name\":\"RESOURCE_NOT_FOUND_ERROR\",\"message\":\"invoice with id INV2-P6VJ-36HG-BBVT-M2MA not found in the system.\",\"debug_id\":\"e85ba4289863b\"}"
71
- read 140 bytes
64
+ reading 1184 bytes...
65
+ -> "{\"id\":\"INV2-P6VJ-36HG-BBVT-M2MA\",\"number\":\"0001\",\"status\":\"SENT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"first_name\":\"Dennis\",\"last_name\":\"Doctor\",\"business_name\":\"Medical Professionals, LLC\",\"address\":{\"line1\":\"1234 Main St.\",\"city\":\"Portland\",\"state\":\"OR\",\"postal_code\":\"97217\",\"country_code\":\"US\"}},\"billing_info\":[{\"email\":\"example@example.com\"}],\"shipping_info\":{\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\",\"address\":{\"line1\":\"1234 Broad St.\",\"city\":\"Portland\",\"state\":\"OR\",\"postal_code\":\"97216\",\"country_code\":\"US\"}},\"items\":[{\"name\":\"Sutures\",\"quantity\":100.0,\"unit_price\":{\"currency\":\"USD\",\"value\":\"5.00\"}}],\"invoice_date\":\"2014-04-03 PDT\",\"payment_term\":{\"term_type\":\"NET_45\",\"due_date\":\"2014-05-18 PDT\"},\"tax_calculated_after_discount\":false,\"tax_inclusive\":false,\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-04-03 22:30:15 PDT\",\"first_sent_date\":\"2014-04-03 22:48:22 PDT\",\"last_sent_date\":\"2014-04-03 22:48:22 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-P6VJ-36HG-BBVT-M2MA\"}}"
66
+ read 1184 bytes
72
67
  Conn keep-alive
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: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-01 00:00:00.000000000 Z
11
+ date: 2014-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paypal-sdk-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.0
19
+ version: 0.3.1
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.3.0
26
+ version: 0.3.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: uuidtools
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -41,7 +41,7 @@ dependencies:
41
41
  description: The PayPal REST SDK provides Ruby APIs to create, process and manage
42
42
  payment.
43
43
  email:
44
- - DL-PP-Platform-Ruby-SDK@ebay.com
44
+ - DL-PP-RUBY-SDK@ebay.com
45
45
  executables: []
46
46
  extensions: []
47
47
  extra_rdoc_files: []
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.2.2
87
+ rubygems_version: 2.4.1
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: The PayPal REST SDK provides Ruby APIs to create, process and manage payment.