paypal-sdk-rest 0.7.1 → 0.7.2
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/README.md +0 -1
- data/lib/paypal-sdk/rest/data_types.rb +15 -0
- data/lib/paypal-sdk/rest/version.rb +1 -1
- data/spec/log/http.log +20 -20
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 455e36539241e57e39d8cd01efd98562bad29546
|
4
|
+
data.tar.gz: 3aa9e1ccc2d597f2ee2bf3ae7c5758b5ba7ae95d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3627f5058ee499a3f6049c712866aa5b097b817485b3a15929247243b51cf8b8876b77594985207a478395f303e3a413f6fce68b3ed660f17e56e3f7c761514
|
7
|
+
data.tar.gz: f5eebcc4a68640dbf1609cb7f99ae626c6aa5aec91d28e173f6639b0b2a90245df85daa39f2d8f2816b2dfa316fdeec3f64a396d86e23311db302d8111197851
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# REST SDK
|
2
2
|
|
3
3
|
The PayPal REST SDK provides Ruby APIs to create, process and manage payment.
|
4
|
-
> **Before starting to use the sdk, please be aware of the [existing issues and currently available or upcoming features](https://github.com/paypal/rest-api-sdk-python/wiki/Existing-Issues-and-Unavailable%5CUpcoming-features) for the REST APIs. (which the sdks are based on)**
|
5
4
|
|
6
5
|
## Installation
|
7
6
|
|
@@ -296,12 +296,27 @@ module PayPal::SDK
|
|
296
296
|
class RelatedResources < Base
|
297
297
|
|
298
298
|
def self.load_members
|
299
|
+
object_of :order, Order
|
299
300
|
object_of :sale, Sale
|
300
301
|
object_of :authorization, Authorization
|
301
302
|
object_of :capture, Capture
|
302
303
|
object_of :refund, Refund
|
303
304
|
end
|
304
305
|
|
306
|
+
end
|
307
|
+
class Order < Base
|
308
|
+
|
309
|
+
def self.load_members
|
310
|
+
object_of :id, String
|
311
|
+
object_of :create_time, DateTime
|
312
|
+
object_of :update_time, DateTime
|
313
|
+
object_of :state, String
|
314
|
+
object_of :amount, Amount
|
315
|
+
object_of :parent_payment, String
|
316
|
+
object_of :reason_code, String
|
317
|
+
array_of :links, Links
|
318
|
+
end
|
319
|
+
|
305
320
|
end
|
306
321
|
class Sale < Base
|
307
322
|
|
data/spec/log/http.log
CHANGED
@@ -2,46 +2,46 @@ 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
|
5
|
+
<- "POST /v1/invoicing/invoices HTTP/1.1\r\nAuthorization: Bearer A015XXNLKck4zlIZMkjai9eHsWctQBnPn.gT3pfUTZ-A2p4\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 0.7.2 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: b26f2b35-53d4-4158-9b87-2c86adae7ff3\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
7
|
-> "HTTP/1.1 201 Created\r\n"
|
8
8
|
-> "Server: Apache-Coyote/1.1\r\n"
|
9
|
-
-> "PROXY_SERVER_INFO: host=
|
10
|
-
-> "Paypal-Debug-Id:
|
11
|
-
-> "Date:
|
12
|
-
-> "Location: https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-
|
9
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=2876\r\n"
|
10
|
+
-> "Paypal-Debug-Id: ae9f0be924930\r\n"
|
11
|
+
-> "Date: Mon, 20 Oct 2014 16:25:48 GMT\r\n"
|
12
|
+
-> "Location: https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-8EPA-K2PE-XXHL-UKSX\r\n"
|
13
13
|
-> "Content-Type: application/json\r\n"
|
14
14
|
-> "Content-Length: 510\r\n"
|
15
15
|
-> "\r\n"
|
16
16
|
reading 510 bytes...
|
17
|
-
-> "{\"id\":\"INV2-
|
17
|
+
-> "{\"id\":\"INV2-8EPA-K2PE-XXHL-UKSX\",\"number\":\"2456\",\"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-20 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
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
|
-
<- "GET /v1/invoicing/invoices/?total_count_required=true HTTP/1.1\r\nAuthorization: Bearer
|
24
|
+
<- "GET /v1/invoicing/invoices/?total_count_required=true HTTP/1.1\r\nAuthorization: Bearer A015XXNLKck4zlIZMkjai9eHsWctQBnPn.gT3pfUTZ-A2p4\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 0.7.2 (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"
|
25
25
|
-> "HTTP/1.1 200 OK\r\n"
|
26
26
|
-> "Server: Apache-Coyote/1.1\r\n"
|
27
|
-
-> "PROXY_SERVER_INFO: host=
|
28
|
-
-> "Paypal-Debug-Id:
|
29
|
-
-> "Date:
|
27
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava2.slc.paypal.com;threadId=239\r\n"
|
28
|
+
-> "Paypal-Debug-Id: a59b4e352eecb\r\n"
|
29
|
+
-> "Date: Mon, 20 Oct 2014 16:25:50 GMT\r\n"
|
30
30
|
-> "Content-Type: application/json\r\n"
|
31
31
|
-> "Transfer-Encoding: chunked\r\n"
|
32
32
|
-> "\r\n"
|
33
33
|
-> "2000\r\n"
|
34
34
|
reading 8192 bytes...
|
35
|
-
-> "{\"total_count\":
|
35
|
+
-> "{\"total_count\":2445,\"invoices\":[{\"id\":\"INV2-8EPA-K2PE-XXHL-UKSX\",\"number\":\"2456\",\"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-20 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-20 09:25:48 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-8EPA-K2PE-XXHL-UKSX\"}},{\"id\":\"INV2-5HG5-JTGH-8F6P-4D7P\",\"number\":\"2455\",\"status\":\"SENT\",\"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-19 PDT\",\"payment_term\":{\"due_date\":\"2014-12-03 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-19 20:32:07 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-5HG5-JTGH-8F6P-4D7P\"}},{\"id\":\"INV2-SAQ8-CBPR-PH9E-JSYV\",\"number\":\"2454\",\"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-19 PDT\",\"payment_term\":{\"due_date\":\"2014-12-03 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-19 08:47:32 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-SAQ8-CBPR-PH9E-JSYV\"}},{\"id\":\"INV2-Z4PA-EYHZ-D86T-YJDV\",\"number\":\"2453\",\"status\":\"SENT\",\"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-17 PDT\",\"payment_term\":{\"due_date\":\"2014-12-01 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-17 01:58:39 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-Z4PA-EYHZ-D86T-YJDV\"}},{\"id\":\"INV2-22Y4-3KUP-9B5D-XMD5\",\"number\":\"2452\",\"status\":\"MARKED_AS_PAID\",\"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-16 PDT\",\"payment_term\":{\"due_date\":\"2014-11-30 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-16 06:19:48 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-22Y4-3KUP-9B5D-XMD5\"}},{\"id\":\"INV2-M6GA-L6BH-ZDSU-K8UQ\",\"number\":\"2451\",\"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-15 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-15 19:03:20 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-M6GA-L6BH-ZDSU-K8UQ\"}},{\"id\":\"INV2-225R-283C-Z4MV-BDLW\",\"number\":\"2450\",\"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-15 PDT\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-15 18:46:56 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-225R-283C-Z4MV-BDLW\"}},{\"id\":\"INV2-U3LF-A7NH-JB65-BMM8\",\"number\":\"2449\",\"status\":\"SENT\",\"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-15 PDT\",\"payment_term\":{\"due_date\":\"2014-11-29 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-15 07:58:59 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-U3LF-A7NH-JB65-BMM8\"}},{\"id\":\"INV2-LZ4R-PVSS-RVQ9-JCFF\",\"number\":\"2448\",\"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-14 PDT\",\"payment_term\":{\"due_date\":\"2014-11-28 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-14 15:17:52 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-LZ4R-PVSS-RVQ9-JCFF\"}},{\"id\":\"INV2-GAT6-YG44-8RL3-DF5X\",\"number\":\"2447\",\"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-14 PDT\",\"payment_term\":{\"due_date\":\"2014-11-28 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-14 08:17:02 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-GAT6-YG44-8RL3-DF5X\"}},{\"id\":\"INV2-EK4B-4UYV-ETJX-44F2\",\"number\":\"2446\",\"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-14 PDT\",\"payment_term\":{\"due_date\":\"2014-11-28 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-14 01:10:37 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-EK4B-4UYV-ETJX-44F2\"}},{\"id\":\"INV2-THJC-H5ES-WXWB-8T2Z\",\"number\":\"2445\",\"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-14 PDT\",\"payment_term\":{\"due_date\":\"2014-11-28 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-14 00:24:08 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-THJC-H5ES-WXWB-8T2Z\"}},{\"id\":\"INV2-JHD9-HQ7G-6FHL-MZ32\",\"number\":\"2444\",\"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-13 PDT\",\"payment_term\":{\"due_date\":\"2014-11-27 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-13 22:05:13 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-JHD9-HQ7G-6FHL-MZ32\"}},{\"id\":\"INV2-ZJRQ-KMMA-FFPR-WWL9\",\"number\":\"2443\",\"status\":\"MARKED_AS_PAID\",\"merchant_info\":{\""
|
36
36
|
read 8192 bytes
|
37
37
|
reading 2 bytes...
|
38
38
|
-> "\r\n"
|
39
39
|
read 2 bytes
|
40
|
-
-> "
|
41
|
-
reading
|
42
|
-
-> "},\"invoice_date\":\"2014-
|
43
|
-
-> "
|
44
|
-
read
|
40
|
+
-> "1189\r\n"
|
41
|
+
reading 4489 bytes...
|
42
|
+
-> "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-13 PDT\",\"payment_term\":{\"due_date\":\"2014-11-27 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-13 15:52:04 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-ZJRQ-KMMA-FFPR"
|
43
|
+
-> "-WWL9\"}},{\"id\":\"INV2-M8U3-F77F-FZ89-M4MP\",\"number\":\"2442\",\"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-13 PDT\",\"payment_term\":{\"due_date\":\"2014-11-27 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-13 14:38:33 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-M8U3-F77F-FZ89-M4MP\"}},{\"id\":\"INV2-BMRE-KDF5-32TR-VJ7E\",\"number\":\"2441\",\"status\":\"MARKED_AS_PAID\",\"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-13 PDT\",\"payment_term\":{\"due_date\":\"2014-11-27 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-13 09:41:41 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-BMRE-KDF5-32TR-VJ7E\"}},{\"id\":\"INV2-K3T2-5E76-AUSG-HV77\",\"number\":\"2440\",\"status\":\"MARKED_AS_PAID\",\"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-13 PDT\",\"payment_term\":{\"due_date\":\"2014-11-27 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-13 09:41:26 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-K3T2-5E76-AUSG-HV77\"}},{\"id\":\"INV2-23FK-KQ4Q-2DUR-AHKK\",\"number\":\"2439\",\"status\":\"MARKED_AS_PAID\",\"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-13 PDT\",\"payment_term\":{\"due_date\":\"2014-11-27 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-13 09:41:06 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-23FK-KQ4Q-2DUR-AHKK\"}},{\"id\":\"INV2-3D7X-UB9T-JZRW-XPBA\",\"number\":\"2438\",\"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-13 PDT\",\"payment_term\":{\"due_date\":\"2014-11-27 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-13 09:04:03 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-3D7X-UB9T-JZRW-XPBA\"}},{\"id\":\"INV2-FTCU-HTLQ-JCRB-7RJF\",\"number\":\"2437\",\"status\":\"MARKED_AS_PAID\",\"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-10 PDT\",\"payment_term\":{\"due_date\":\"2014-11-24 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-10-10 12:42:10 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-FTCU-HTLQ-JCRB-7RJF\"}}]}"
|
44
|
+
read 4489 bytes
|
45
45
|
reading 2 bytes...
|
46
46
|
-> "\r\n"
|
47
47
|
read 2 bytes
|
@@ -52,12 +52,12 @@ opening connection to api.sandbox.paypal.com:443...
|
|
52
52
|
opened
|
53
53
|
starting SSL for api.sandbox.paypal.com:443...
|
54
54
|
SSL established
|
55
|
-
<- "GET /v1/invoicing/invoices/INV2-P6VJ-36HG-BBVT-M2MA HTTP/1.1\r\nAuthorization: Bearer
|
55
|
+
<- "GET /v1/invoicing/invoices/INV2-P6VJ-36HG-BBVT-M2MA HTTP/1.1\r\nAuthorization: Bearer A015XXNLKck4zlIZMkjai9eHsWctQBnPn.gT3pfUTZ-A2p4\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 0.7.2 (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
56
|
-> "HTTP/1.1 200 OK\r\n"
|
57
57
|
-> "Server: Apache-Coyote/1.1\r\n"
|
58
|
-
-> "PROXY_SERVER_INFO: host=
|
59
|
-
-> "Paypal-Debug-Id:
|
60
|
-
-> "Date:
|
58
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=12898\r\n"
|
59
|
+
-> "Paypal-Debug-Id: b4db79ee3a984\r\n"
|
60
|
+
-> "Date: Mon, 20 Oct 2014 16:25:51 GMT\r\n"
|
61
61
|
-> "Content-Type: application/json\r\n"
|
62
62
|
-> "Content-Length: 1184\r\n"
|
63
63
|
-> "\r\n"
|
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.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paypal-sdk-core
|