paypal-sdk-rest 1.4.3 → 1.4.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
2
  SHA1:
3
- metadata.gz: f04d12b13e7fb2d4cd7e4e012215179974d4f1d1
4
- data.tar.gz: af54b5283da0d7a5fabd00bf40f03512ffa7a5a3
3
+ metadata.gz: aa8bb3cdfdb02ec868c59be2d4a898de55c7b71f
4
+ data.tar.gz: a92c895fcd1fcd218bed84c8b9db9c12f37184c5
5
5
  SHA512:
6
- metadata.gz: ebbfc7141e43cc3411282a94f53837cd4ac3e4f12347a6e8a5d9952dcc2613dffec006206a80ab1bd4e1469b4b1e34345fa806d0b3047fae965ab4713224be69
7
- data.tar.gz: 503e3e9442897700820cec9817aab210426ff6abce81d7b03ca69b5d999a74dbdb28f7cf26981591ca07b716d602a4f6c52d28fc0c5e35242dc7925a905d640d
6
+ metadata.gz: 6ecee134ea67d11ed68ae6412927a12cf97b7da333e4241920f86b47c1c63ac6ea2a45b7d1a972baf2294343e3f8f9b6dee80539af2e5994d351b536c3780e3f
7
+ data.tar.gz: bf799e0b1af49b9dab5c84cb6f75b2aa897a7472b02e3991226628f780fb28beb87d44f4562e87816c4c887781f3c6d90ddbbad52de47afc2d13b905d2b80fe7
@@ -1074,6 +1074,12 @@ module PayPal::SDK
1074
1074
  end
1075
1075
  end
1076
1076
 
1077
+ class InvoiceAmountWrapper < Base
1078
+ def self.load_members
1079
+ object_of :paypal, Currency
1080
+ end
1081
+ end
1082
+
1077
1083
  class Invoice < Base
1078
1084
  def self.load_members
1079
1085
  object_of :id, String
@@ -1093,6 +1099,7 @@ module PayPal::SDK
1093
1099
  object_of :tax_inclusive, Boolean
1094
1100
  object_of :terms, String
1095
1101
  object_of :note, String
1102
+ object_of :refunded_amount, InvoiceAmountWrapper
1096
1103
  object_of :merchant_memo, String
1097
1104
  object_of :logo_url, String
1098
1105
  object_of :total_amount, Currency
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module REST
4
- VERSION = "1.4.3"
4
+ VERSION = "1.4.4"
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,131 @@
1
+ opening connection to api.sandbox.paypal.com:443...
2
+ opened
3
+ starting SSL for api.sandbox.paypal.com:443...
4
+ SSL established
5
+ <- "POST /v1/invoicing/invoices HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.66cClpDMkxFtRyAolmsHhD3tpvv2j7JuTOV4robhHiKD0uxESz-Hmtyr-aJb7sQP.tnQB2yMtVSwxAbATrQ4mnrCECjS\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.4.3 (paypal-sdk-core 1.4.3; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2e 3 Dec 2015)\r\nPaypal-Request-Id: b100ed2d-024c-41bb-9937-5597fa20a6a3\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
+ <- "{\"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"
8
+ -> "Date: Thu, 31 Mar 2016 21:31:01 GMT\r\n"
9
+ -> "Server: Apache\r\n"
10
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=680\r\n"
11
+ -> "Paypal-Debug-Id: 6ac40b5980e\r\n"
12
+ -> "CORRELATION-ID: 6ac40b5980e\r\n"
13
+ -> "WWW-Authenticate: OAuth\r\n"
14
+ -> "Paypal-Debug-Id: 6ac40b5980e\r\n"
15
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D362282326; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
16
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
17
+ -> "Vary: Authorization\r\n"
18
+ -> "Content-Length: 97\r\n"
19
+ -> "Connection: close\r\n"
20
+ -> "Content-Type: application/json\r\n"
21
+ -> "\r\n"
22
+ reading 97 bytes...
23
+ -> "{\"name\":\"AUTHORIZATION_ERROR\",\"message\":\"Authorization error occurred.\",\"debug_id\":\"6ac40b5980e\"}"
24
+ read 97 bytes
25
+ Conn close
26
+ opening connection to api.sandbox.paypal.com:443...
27
+ opened
28
+ starting SSL for api.sandbox.paypal.com:443...
29
+ SSL established
30
+ <- "POST /v1/invoicing/invoices HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.66cClpDMkxFtRyAolmsHhD3tpvv2j7JuTOV4robhHiKD0uxESz-Hmtyr-aJb7sQP.tnQB2yMtVSwxAbATrQ4mnrCECjS\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.4.3 (paypal-sdk-core 1.4.3; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2e 3 Dec 2015)\r\nPaypal-Request-Id: b100ed2d-024c-41bb-9937-5597fa20a6a3\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"
31
+ <- "{\"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\"}"
32
+ -> "HTTP/1.1 401 Unauthorized\r\n"
33
+ -> "Date: Thu, 31 Mar 2016 21:31:02 GMT\r\n"
34
+ -> "Server: Apache\r\n"
35
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=440\r\n"
36
+ -> "Paypal-Debug-Id: 59485dd4725be\r\n"
37
+ -> "CORRELATION-ID: 59485dd4725be\r\n"
38
+ -> "WWW-Authenticate: OAuth\r\n"
39
+ -> "Paypal-Debug-Id: 59485dd4725be\r\n"
40
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D379059542; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
41
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
42
+ -> "Vary: Authorization\r\n"
43
+ -> "Content-Length: 99\r\n"
44
+ -> "Connection: close\r\n"
45
+ -> "Content-Type: application/json\r\n"
46
+ -> "\r\n"
47
+ reading 99 bytes...
48
+ -> "{\"name\":\"AUTHORIZATION_ERROR\",\"message\":\"Authorization error occurred.\",\"debug_id\":\"59485dd4725be\"}"
49
+ read 99 bytes
50
+ Conn close
51
+ opening connection to api.sandbox.paypal.com:443...
52
+ opened
53
+ starting SSL for api.sandbox.paypal.com:443...
54
+ SSL established
55
+ <- "GET /v1/invoicing/invoices/?total_count_required=true HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.66cClpDMkxFtRyAolmsHhD3tpvv2j7JuTOV4robhHiKD0uxESz-Hmtyr-aJb7sQP.tnQB2yMtVSwxAbATrQ4mnrCECjS\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.4.3 (paypal-sdk-core 1.4.3; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2e 3 Dec 2015)\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"
57
+ -> "Date: Thu, 31 Mar 2016 21:31:03 GMT\r\n"
58
+ -> "Server: Apache\r\n"
59
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=484\r\n"
60
+ -> "Paypal-Debug-Id: 5e6f66d069ce\r\n"
61
+ -> "CORRELATION-ID: 5e6f66d069ce\r\n"
62
+ -> "Paypal-Debug-Id: 5e6f66d069ce\r\n"
63
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D395836758; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
64
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
65
+ -> "Vary: Authorization\r\n"
66
+ -> "Connection: close\r\n"
67
+ -> "Transfer-Encoding: chunked\r\n"
68
+ -> "Content-Type: application/json\r\n"
69
+ -> "\r\n"
70
+ -> "2000\r\n"
71
+ reading 8192 bytes...
72
+ -> ""
73
+ -> "{\"total_count\":12643,\"invoices\":[{\"id\":\"INV2-3RYV-FYXN-2ANH-64V3\",\"number\":\"345665307\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"530.75\"},\"metadata\":{\"created_date\":\"2016-03-31 13:49:35 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-3RYV-FYXN-2ANH-64V3\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-3RYV-FYXN-2ANH-64V3/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-3RYV-FYXN-2ANH-64V3/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-3RYV-FYXN-2ANH-64V3\",\"method\":\"DELETE\"}]},{\"id\":\"INV2-A4DT-TUMC-NM3Y-CCZL\",\"number\":\"345665306\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:50:44 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-A4DT-TUMC-NM3Y-CCZL\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-A4DT-TUMC-NM3Y-CCZL/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-A4DT-TUMC-NM3Y-CCZL/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-A4DT-TUMC-NM3Y-CCZL\",\"method\":\"DELETE\"}]},{\"id\":\"INV2-VNM7-XH6C-5E8Z-W47F\",\"number\":\"345665305\",\"status\":\"SENT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:50:37 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-VNM7-XH6C-5E8Z-W47F\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-VNM7-XH6C-5E8Z-W47F\",\"method\":\"GET\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-VNM7-XH6C-5E8Z-W47F/update\",\"method\":\"PUT\"},{\"rel\":\"cancel\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-VNM7-XH6C-5E8Z-W47F/remind\",\"method\":\"POST\"},{\"rel\":\"remind\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-VNM7-XH6C-5E8Z-W47F/cancel\",\"method\":\"POST\"},{\"rel\":\"record-payment\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-VNM7-XH6C-5E8Z-W47F/record-payment\",\"method\":\"POST\"},{\"rel\":\"qr-code\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-VNM7-XH6C-5E8Z-W47F/qr-code\",\"method\":\"GET\"}]},{\"id\":\"INV2-467P-5XMQ-SVYG-GK7D\",\"number\":\"345665304\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:50:30 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-467P-5XMQ-SVYG-GK7D\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-467P-5XMQ-SVYG-GK7D/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-467P-5XMQ-SVYG-GK7D/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-467P-5XMQ-SVYG-GK7D\",\"method\":\"DELETE\"}]},{\"id\":\"INV2-TKWD-T3SU-PQ56-HVLD\",\"number\":\"345665303\",\"status\":\"SENT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:50:22 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-TKWD-T3SU-PQ56-HVLD\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TKWD-T3SU-PQ56-HVLD\",\"method\":\"GET\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TKWD-T3SU-PQ56-HVLD/update\",\"method\":\"PUT\"},{\"rel\":\"cancel\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TKWD-T3SU-PQ56-HVLD/remind\",\"method\":\"POST\"},{\"rel\":\"remind\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TKWD-T3SU-PQ56-HVLD/cancel\",\"method\":\"POST\"},{\"rel\":\"record-payment\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TKWD-T3SU-PQ56-HVLD/record-payment\",\"method\":\"POST\"},{\"rel\":\"qr-code\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TKWD-T3SU-PQ56-HVLD/qr-code\",\"method\":\"GET\"}]},{\"id\":\"INV2-TWRD-WSNJ-X629-4R2N\",\"number\":\"345665302\",\"status\":\"SENT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:50:15 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-TWRD-WSNJ-X629-4R2N\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TWRD-WSNJ-X629-4R2N\",\"method\":\"GET\"},{\"rel\":\"update\",\"href\":\"http"
74
+ read 8192 bytes
75
+ reading 2 bytes...
76
+ -> ""
77
+ -> "\r\n"
78
+ read 2 bytes
79
+ -> "2000\r\n"
80
+ reading 8192 bytes...
81
+ -> ""
82
+ -> "s://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TWRD-WSNJ-X629-4R2N/update\",\"method\":\"PUT\"},{\"rel\":\"cancel\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TWRD-WSNJ-X629-4R2N/remind\",\"method\":\"POST\"},{\"rel\":\"remind\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TWRD-WSNJ-X629-4R2N/cancel\",\"method\":\"POST\"},{\"rel\":\"record-payment\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TWRD-WSNJ-X629-4R2N/record-payment\",\"method\":\"POST\"},{\"rel\":\"qr-code\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-TWRD-WSNJ-X629-4R2N/qr-code\",\"method\":\"GET\"}]},{\"id\":\"INV2-RPFJ-DUN7-WU79-K7JM\",\"number\":\"345665301\",\"status\":\"MARKED_AS_REFUNDED\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:50:05 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"519.51\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"519.51\"}}},{\"id\":\"INV2-YYX8-UVWZ-2WF7-S9CK\",\"number\":\"345665300\",\"status\":\"MARKED_AS_PAID\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:49:57 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"519.51\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-YYX8-UVWZ-2WF7-S9CK\",\"method\":\"GET\"}]},{\"id\":\"INV2-SLDN-VXVE-QY8L-48CW\",\"number\":\"345665299\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:49:47 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-SLDN-VXVE-QY8L-48CW\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-SLDN-VXVE-QY8L-48CW/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-SLDN-VXVE-QY8L-48CW/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-SLDN-VXVE-QY8L-48CW\",\"method\":\"DELETE\"}]},{\"id\":\"INV2-445J-F3RL-TER6-7ADD\",\"number\":\"345665298\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:49:41 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-445J-F3RL-TER6-7ADD\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-445J-F3RL-TER6-7ADD/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-445J-F3RL-TER6-7ADD/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-445J-F3RL-TER6-7ADD\",\"method\":\"DELETE\"}]},{\"id\":\"INV2-XVKW-AHJD-F6F6-BHB2\",\"number\":\"345665297\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:49:32 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-XVKW-AHJD-F6F6-BHB2\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-XVKW-AHJD-F6F6-BHB2/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-XVKW-AHJD-F6F6-BHB2/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-XVKW-AHJD-F6F6-BHB2\",\"method\":\"DELETE\"}]},{\"id\":\"INV2-2SGA-2LWK-96BL-77ZX\",\"number\":\"345665296\",\"status\":\"CANCELLED\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:49:25 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-2SGA-2LWK-96BL-77ZX\",\"method\":\"GET\"}]},{\"id\":\"INV2-EAGU-JVEG-AFGW-QRBC\",\"number\":\"345665295\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"530.75\"},\"metadata\":{\"created_date\":\"2016-03-31 11:40:10 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-EAGU-JVEG-AFGW-QRBC\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-EAGU-JVEG-AFGW-QRBC/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-EAGU-JVEG-AFGW-QRBC/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/"
83
+ read 8192 bytes
84
+ reading 2 bytes...
85
+ -> ""
86
+ -> "\r\n"
87
+ read 2 bytes
88
+ -> "2000\r\n"
89
+ reading 8192 bytes...
90
+ -> ""
91
+ -> "invoicing/invoices/INV2-EAGU-JVEG-AFGW-QRBC\",\"method\":\"DELETE\"}]},{\"id\":\"INV2-UWTP-NBNB-6TNE-WDU9\",\"number\":\"345665294\",\"status\":\"CANCELLED\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 11:26:36 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-UWTP-NBNB-6TNE-WDU9\",\"method\":\"GET\"}]},{\"id\":\"INV2-237V-PYBM-EU37-ZELB\",\"number\":\"345665293\",\"status\":\"MARKED_AS_REFUNDED\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"530.75\"},\"metadata\":{\"created_date\":\"2016-03-31 09:22:08 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"530.75\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"530.75\"}}},{\"id\":\"INV2-CUA2-NT5U-PKUE-B8YR\",\"number\":\"345665292\",\"status\":\"SENT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"530.75\"},\"metadata\":{\"created_date\":\"2016-03-31 08:53:17 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-CUA2-NT5U-PKUE-B8YR\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-CUA2-NT5U-PKUE-B8YR\",\"method\":\"GET\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-CUA2-NT5U-PKUE-B8YR/update\",\"method\":\"PUT\"},{\"rel\":\"cancel\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-CUA2-NT5U-PKUE-B8YR/remind\",\"method\":\"POST\"},{\"rel\":\"remind\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-CUA2-NT5U-PKUE-B8YR/cancel\",\"method\":\"POST\"},{\"rel\":\"record-payment\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-CUA2-NT5U-PKUE-B8YR/record-payment\",\"method\":\"POST\"},{\"rel\":\"qr-code\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-CUA2-NT5U-PKUE-B8YR/qr-code\",\"method\":\"GET\"}]},{\"id\":\"INV2-E8ET-8BS4-R33Y-FPPG\",\"number\":\"345665291\",\"status\":\"SENT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"530.75\"},\"metadata\":{\"created_date\":\"2016-03-31 08:18:12 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-E8ET-8BS4-R33Y-FPPG\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-E8ET-8BS4-R33Y-FPPG\",\"method\":\"GET\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-E8ET-8BS4-R33Y-FPPG/update\",\"method\":\"PUT\"},{\"rel\":\"cancel\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-E8ET-8BS4-R33Y-FPPG/remind\",\"method\":\"POST\"},{\"rel\":\"remind\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-E8ET-8BS4-R33Y-FPPG/cancel\",\"method\":\"POST\"},{\"rel\":\"record-payment\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-E8ET-8BS4-R33Y-FPPG/record-payment\",\"method\":\"POST\"},{\"rel\":\"qr-code\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-E8ET-8BS4-R33Y-FPPG/qr-code\",\"method\":\"GET\"}]},{\"id\":\"INV2-CFAN-X8ZV-JWPN-CEGJ\",\"number\":\"345665290\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"530.75\"},\"metadata\":{\"created_date\":\"2016-03-31 06:01:37 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-CFAN-X8ZV-JWPN-CEGJ\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-CFAN-X8ZV-JWPN-CEGJ/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-CFAN-X8ZV-JWPN-CEGJ/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-CFAN-X8ZV-JWPN-CEGJ\",\"method\":\"DELETE\"}]},{\"id\":\"INV2-PH6L-8FHJ-2MPU-RT2Y\",\"number\":\"345665289\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.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\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2016-03-31 05:38:37 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-PH6L-8FHJ-2MPU-RT2Y\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-PH6L-8FHJ-2MPU-RT2Y/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-PH6L-8FHJ-2MPU-RT2Y/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-PH6L-8FHJ-2MPU-RT2Y\",\"method\":\"DELETE\"}]},{\"id\":\"INV2-KFSK-9S2R-5AL2-RPAP\",\"number\":\"345665288\",\"status\":\"MARKED_AS_REFUNDED\",\"merchant_info\":{\"email\":\"jaypatel512-facilitator@hotmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\",\"business_name\":\"Jay Inc\"}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\"},\"invoice_date\":\"2016-03-31 PDT\",\"payment_term\":{\"due_date\":\"2016-05-15 PDT\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"519.51\"},\"metadata\":{\"created_date\":\"2016-03-31 05:29:12 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"valu"
92
+ read 8192 bytes
93
+ reading 2 bytes...
94
+ -> ""
95
+ -> "\r\n"
96
+ read 2 bytes
97
+ -> "1c4\r\n"
98
+ reading 452 bytes...
99
+ -> ""
100
+ -> "e\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"519.51\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"519.51\"}}}],\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices?page=0&page_size=20&total_count_required=true\",\"method\":\"GET\"},{\"rel\":\"next\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices?page=20&page_size=20&total_count_required=true\",\"method\":\"GET\"}]}"
101
+ read 452 bytes
102
+ reading 2 bytes...
103
+ -> ""
104
+ -> "\r\n"
105
+ read 2 bytes
106
+ -> "0\r\n"
107
+ -> "\r\n"
108
+ Conn close
109
+ opening connection to api.sandbox.paypal.com:443...
110
+ opened
111
+ starting SSL for api.sandbox.paypal.com:443...
112
+ SSL established
113
+ <- "GET /v1/invoicing/invoices/INV2-P6VJ-36HG-BBVT-M2MA HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.66cClpDMkxFtRyAolmsHhD3tpvv2j7JuTOV4robhHiKD0uxESz-Hmtyr-aJb7sQP.tnQB2yMtVSwxAbATrQ4mnrCECjS\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.4.3 (paypal-sdk-core 1.4.3; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2e 3 Dec 2015)\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"
114
+ -> "HTTP/1.1 404 Not Found\r\n"
115
+ -> "Date: Thu, 31 Mar 2016 21:31:04 GMT\r\n"
116
+ -> "Server: Apache\r\n"
117
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=579\r\n"
118
+ -> "Paypal-Debug-Id: b9b2eef428450\r\n"
119
+ -> "CORRELATION-ID: b9b2eef428450\r\n"
120
+ -> "Paypal-Debug-Id: b9b2eef428450\r\n"
121
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D412613974; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
122
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
123
+ -> "Vary: Authorization\r\n"
124
+ -> "Content-Length: 140\r\n"
125
+ -> "Connection: close\r\n"
126
+ -> "Content-Type: application/json\r\n"
127
+ -> "\r\n"
128
+ reading 140 bytes...
129
+ -> "{\"name\":\"RESOURCE_NOT_FOUND_ERROR\",\"message\":\"invoice with id INV2-P6VJ-36HG-BBVT-M2MA not found in the system.\",\"debug_id\":\"b9b2eef428450\"}"
130
+ read 140 bytes
131
+ Conn close
@@ -0,0 +1,80 @@
1
+ opening connection to api.sandbox.paypal.com:443...
2
+ opened
3
+ starting SSL for api.sandbox.paypal.com:443...
4
+ SSL established
5
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.66cClpDMkxFtRyAolmsHhD3tpvv2j7JuTOV4robhHiKD0uxESz-Hmtyr-aJb7sQP.tnQB2yMtVSwxAbATrQ4mnrCECjS\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.4.3 (paypal-sdk-core 1.4.3; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2e 3 Dec 2015)\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: 286\r\n\r\n"
6
+ <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"4567516310777851\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"}}]}"
7
+ -> "HTTP/1.1 201 Created\r\n"
8
+ -> "Date: Thu, 31 Mar 2016 21:25:03 GMT\r\n"
9
+ -> "Server: Apache\r\n"
10
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=278\r\n"
11
+ -> "Paypal-Debug-Id: 19e69b91d2349\r\n"
12
+ -> "CORRELATION-ID: 19e69b91d2349\r\n"
13
+ -> "Content-Language: *\r\n"
14
+ -> "Paypal-Debug-Id: 19e69b91d2349\r\n"
15
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D2945842518; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
16
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
17
+ -> "Vary: Authorization\r\n"
18
+ -> "Content-Length: 1246\r\n"
19
+ -> "Connection: close\r\n"
20
+ -> "Content-Type: application/json\r\n"
21
+ -> "\r\n"
22
+ reading 1246 bytes...
23
+ -> "{\"id\":\"PAY-9J7087223R293394VK36ZLMA\",\"create_time\":\"2016-03-31T21:25:04Z\",\"update_time\":\"2016-03-31T21:25:08Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx7851\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"50L44463PX815972B\",\"create_time\":\"2016-03-31T21:25:04Z\",\"update_time\":\"2016-03-31T21:25:08Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-9J7087223R293394VK36ZLMA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/50L44463PX815972B\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/50L44463PX815972B/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9J7087223R293394VK36ZLMA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}],\"fmf_details\":{},\"processor_response\":{\"avs_code\":\"X\",\"cvv_code\":\"M\"}}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9J7087223R293394VK36ZLMA\",\"rel\":\"self\",\"method\":\"GET\"}]}"
24
+ read 1246 bytes
25
+ Conn close
26
+ opening connection to api.sandbox.paypal.com:443...
27
+ opened
28
+ starting SSL for api.sandbox.paypal.com:443...
29
+ SSL established
30
+ <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.66cClpDMkxFtRyAolmsHhD3tpvv2j7JuTOV4robhHiKD0uxESz-Hmtyr-aJb7sQP.tnQB2yMtVSwxAbATrQ4mnrCECjS\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.4.3 (paypal-sdk-core 1.4.3; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2e 3 Dec 2015)\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"
31
+ Conn close because of error Net::ReadTimeout, and retry
32
+ opening connection to api.sandbox.paypal.com:443...
33
+ opened
34
+ starting SSL for api.sandbox.paypal.com:443...
35
+ SSL established
36
+ <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.66cClpDMkxFtRyAolmsHhD3tpvv2j7JuTOV4robhHiKD0uxESz-Hmtyr-aJb7sQP.tnQB2yMtVSwxAbATrQ4mnrCECjS\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.4.3 (paypal-sdk-core 1.4.3; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2e 3 Dec 2015)\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"
37
+ Conn close because of error Net::ReadTimeout
38
+ Conn close because of error Net::ReadTimeout
39
+ opening connection to api.sandbox.paypal.com:443...
40
+ opened
41
+ starting SSL for api.sandbox.paypal.com:443...
42
+ SSL established
43
+ <- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.66cClpDMkxFtRyAolmsHhD3tpvv2j7JuTOV4robhHiKD0uxESz-Hmtyr-aJb7sQP.tnQB2yMtVSwxAbATrQ4mnrCECjS\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.4.3 (paypal-sdk-core 1.4.3; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2e 3 Dec 2015)\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: 138\r\n\r\n"
44
+ <- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
45
+ -> "HTTP/1.1 201 Created\r\n"
46
+ -> "Date: Thu, 31 Mar 2016 21:26:10 GMT\r\n"
47
+ -> "Server: Apache\r\n"
48
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=552\r\n"
49
+ -> "Paypal-Debug-Id: 4cb67d343739e\r\n"
50
+ -> "Content-Language: *\r\n"
51
+ -> "CORRELATION-ID: 4cb67d343739e\r\n"
52
+ -> "Paypal-Debug-Id: 4cb67d343739e\r\n"
53
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D4069915990; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
54
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
55
+ -> "Vary: Authorization\r\n"
56
+ -> "Content-Length: 667\r\n"
57
+ -> "Connection: close\r\n"
58
+ -> "Content-Type: application/json\r\n"
59
+ -> "\r\n"
60
+ reading 667 bytes...
61
+ -> "{\"id\":\"CARD-1XH580358G100533EK36ZL4Q\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2019-03-31T00:00:00Z\",\"create_time\":\"2016-03-31T21:26:10Z\",\"update_time\":\"2016-03-31T21:26:10Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-1XH580358G100533EK36ZL4Q\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-1XH580358G100533EK36ZL4Q\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-1XH580358G100533EK36ZL4Q\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
62
+ read 667 bytes
63
+ Conn close
64
+ opening connection to api.sandbox.paypal.com:443...
65
+ opened
66
+ starting SSL for api.sandbox.paypal.com:443...
67
+ SSL established
68
+ <- "GET /v1/vault/credit-card/CARD-1XH580358G100533EK36ZL4Q HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.66cClpDMkxFtRyAolmsHhD3tpvv2j7JuTOV4robhHiKD0uxESz-Hmtyr-aJb7sQP.tnQB2yMtVSwxAbATrQ4mnrCECjS\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.4.3 (paypal-sdk-core 1.4.3; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2e 3 Dec 2015)\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"
69
+ -> "HTTP/1.1 200 OK\r\n"
70
+ -> "Date: Thu, 31 Mar 2016 21:26:10 GMT\r\n"
71
+ -> "Server: Apache\r\n"
72
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=911\r\n"
73
+ -> "Paypal-Debug-Id: cdde84deb3cee\r\n"
74
+ -> "Content-Language: *\r\n"
75
+ -> "CORRELATION-ID: cdde84deb3cee\r\n"
76
+ -> "Paypal-Debug-Id: cdde84deb3cee\r\n"
77
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D4069915990; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
78
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
79
+ -> "Vary: Authorization\r\n"
80
+ -> "Content-Length: 667\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: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-17 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  requirements: []
164
164
  rubyforge_project:
165
- rubygems_version: 2.5.1
165
+ rubygems_version: 2.5.0
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: The PayPal REST SDK provides Ruby APIs to create, process and manage payment.