paypal-sdk-rest 1.7.3 → 2.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +5 -14
  3. data/README.md +48 -243
  4. data/lib/lib.rb +95 -0
  5. data/lib/paypal-sdk-rest.rb +1 -2
  6. data/lib/paypal/core/access_token.rb +20 -0
  7. data/lib/paypal/core/paypal_environment.rb +38 -0
  8. data/lib/paypal/core/paypal_http_client.rb +52 -0
  9. data/lib/paypal/core/token_requests.rb +40 -0
  10. data/lib/paypal/core/version.rb +3 -0
  11. data/lib/v1/billing_agreements/agreement_bill_balance_request.rb +35 -0
  12. data/lib/v1/billing_agreements/agreement_cancel_request.rb +35 -0
  13. data/lib/v1/billing_agreements/agreement_create_request.rb +33 -0
  14. data/lib/v1/billing_agreements/agreement_execute_request.rb +31 -0
  15. data/lib/v1/billing_agreements/agreement_get_request.rb +31 -0
  16. data/lib/v1/billing_agreements/agreement_re_activate_request.rb +35 -0
  17. data/lib/v1/billing_agreements/agreement_set_balance_request.rb +35 -0
  18. data/lib/v1/billing_agreements/agreement_suspend_request.rb +35 -0
  19. data/lib/v1/billing_agreements/agreement_transactions_request.rb +41 -0
  20. data/lib/v1/billing_agreements/agreement_update_request.rb +35 -0
  21. data/lib/v1/billing_plans/plan_create_request.rb +33 -0
  22. data/lib/v1/billing_plans/plan_get_request.rb +31 -0
  23. data/lib/v1/billing_plans/plan_list_request.rb +49 -0
  24. data/lib/v1/billing_plans/plan_update_request.rb +35 -0
  25. data/lib/v1/customer_disputes/dispute_accept_claim_request.rb +35 -0
  26. data/lib/v1/customer_disputes/dispute_adjudicate_request.rb +35 -0
  27. data/lib/v1/customer_disputes/dispute_appeal_request.rb +35 -0
  28. data/lib/v1/customer_disputes/dispute_get_request.rb +31 -0
  29. data/lib/v1/customer_disputes/dispute_list_request.rb +59 -0
  30. data/lib/v1/customer_disputes/dispute_provide_evidence_request.rb +35 -0
  31. data/lib/v1/customer_disputes/dispute_require_evidence_request.rb +35 -0
  32. data/lib/v1/identity/user_consent.rb +45 -0
  33. data/lib/v1/identity/userinfo_get_request.rb +33 -0
  34. data/lib/v1/invoices/invoice_cancel_request.rb +35 -0
  35. data/lib/v1/invoices/invoice_create_request.rb +33 -0
  36. data/lib/v1/invoices/invoice_delete_external_payment_request.rb +33 -0
  37. data/lib/v1/invoices/invoice_delete_external_refund_request.rb +33 -0
  38. data/lib/v1/invoices/invoice_delete_request.rb +31 -0
  39. data/lib/v1/invoices/invoice_get_request.rb +31 -0
  40. data/lib/v1/invoices/invoice_list_request.rb +44 -0
  41. data/lib/v1/invoices/invoice_next_invoice_number_request.rb +29 -0
  42. data/lib/v1/invoices/invoice_qr_code_request.rb +46 -0
  43. data/lib/v1/invoices/invoice_record_payment_request.rb +35 -0
  44. data/lib/v1/invoices/invoice_record_refund_request.rb +35 -0
  45. data/lib/v1/invoices/invoice_remind_request.rb +35 -0
  46. data/lib/v1/invoices/invoice_search_request.rb +33 -0
  47. data/lib/v1/invoices/invoice_send_request.rb +36 -0
  48. data/lib/v1/invoices/invoice_update_request.rb +40 -0
  49. data/lib/v1/invoices/template_create_request.rb +33 -0
  50. data/lib/v1/invoices/template_delete_request.rb +31 -0
  51. data/lib/v1/invoices/template_get_request.rb +31 -0
  52. data/lib/v1/invoices/template_list_request.rb +34 -0
  53. data/lib/v1/invoices/template_update_request.rb +35 -0
  54. data/lib/v1/orders/orders_cancel_request.rb +31 -0
  55. data/lib/v1/orders/orders_create_request.rb +33 -0
  56. data/lib/v1/orders/orders_get_request.rb +31 -0
  57. data/lib/v1/orders/orders_pay_request.rb +35 -0
  58. data/lib/v1/payment_experience/web_profile_create_request.rb +33 -0
  59. data/lib/v1/payment_experience/web_profile_delete_request.rb +31 -0
  60. data/lib/v1/payment_experience/web_profile_get_request.rb +31 -0
  61. data/lib/v1/payment_experience/web_profile_list_request.rb +29 -0
  62. data/lib/v1/payment_experience/web_profile_partial_update_request.rb +35 -0
  63. data/lib/v1/payment_experience/web_profile_update_request.rb +35 -0
  64. data/lib/v1/payments/authorization_capture_request.rb +35 -0
  65. data/lib/v1/payments/authorization_get_request.rb +31 -0
  66. data/lib/v1/payments/authorization_reauthorize_request.rb +35 -0
  67. data/lib/v1/payments/authorization_void_request.rb +35 -0
  68. data/lib/v1/payments/capture_get_request.rb +31 -0
  69. data/lib/v1/payments/capture_refund_request.rb +39 -0
  70. data/lib/v1/payments/order_authorize_request.rb +35 -0
  71. data/lib/v1/payments/order_capture_request.rb +35 -0
  72. data/lib/v1/payments/order_get_request.rb +31 -0
  73. data/lib/v1/payments/order_void_request.rb +35 -0
  74. data/lib/v1/payments/payment_create_request.rb +37 -0
  75. data/lib/v1/payments/payment_execute_request.rb +43 -0
  76. data/lib/v1/payments/payment_get_request.rb +31 -0
  77. data/lib/v1/payments/payment_list_request.rb +69 -0
  78. data/lib/v1/payments/payment_update_request.rb +35 -0
  79. data/lib/v1/payments/refund_get_request.rb +31 -0
  80. data/lib/v1/payments/sale_get_request.rb +31 -0
  81. data/lib/v1/payments/sale_refund_request.rb +39 -0
  82. data/lib/v1/sync/search_get_request.rb +99 -0
  83. data/lib/v1/vault/credit_card_create_request.rb +33 -0
  84. data/lib/v1/vault/credit_card_delete_request.rb +31 -0
  85. data/lib/v1/vault/credit_card_get_request.rb +31 -0
  86. data/lib/v1/vault/credit_card_list_request.rb +79 -0
  87. data/lib/v1/vault/credit_card_update_request.rb +35 -0
  88. data/lib/v1/webhooks/available_event_type_list_request.rb +29 -0
  89. data/lib/v1/webhooks/event_get_request.rb +31 -0
  90. data/lib/v1/webhooks/event_list_request.rb +54 -0
  91. data/lib/v1/webhooks/event_resend_request.rb +35 -0
  92. data/lib/v1/webhooks/simulate_event_request.rb +33 -0
  93. data/lib/v1/webhooks/webhook_create_request.rb +33 -0
  94. data/lib/v1/webhooks/webhook_delete_request.rb +31 -0
  95. data/lib/v1/webhooks/webhook_get_request.rb +31 -0
  96. data/lib/v1/webhooks/webhook_list_event_subscriptions_request.rb +31 -0
  97. data/lib/v1/webhooks/webhook_list_request.rb +34 -0
  98. data/lib/v1/webhooks/webhook_update_request.rb +35 -0
  99. data/lib/v1/webhooks/webhook_verify_signature_request.rb +33 -0
  100. data/spec/integration/test_harness.rb +25 -0
  101. data/spec/integration/v1/billing_agreements/agreement_create_spec.rb +69 -0
  102. data/spec/integration/v1/billing_plans/plan_create_spec.rb +12 -0
  103. data/spec/integration/v1/billing_plans/plan_get_spec.rb +16 -0
  104. data/spec/integration/v1/billing_plans/plan_helper.rb +71 -0
  105. data/spec/integration/v1/billing_plans/plan_list_spec.rb +16 -0
  106. data/spec/integration/v1/billing_plans/plan_update_spec.rb +19 -0
  107. data/spec/integration/v1/customer_disputes/dispute_accept_claim_spec.rb +26 -0
  108. data/spec/integration/v1/customer_disputes/dispute_adjudicate_spec.rb +24 -0
  109. data/spec/integration/v1/customer_disputes/dispute_appeal_spec.rb +33 -0
  110. data/spec/integration/v1/customer_disputes/dispute_get_spec.rb +19 -0
  111. data/spec/integration/v1/customer_disputes/dispute_list_spec.rb +17 -0
  112. data/spec/integration/v1/customer_disputes/dispute_provide_evidence_spec.rb +32 -0
  113. data/spec/integration/v1/customer_disputes/dispute_require_evidence_spec.rb +24 -0
  114. data/spec/integration/v1/customer_disputes/test_image.png +0 -0
  115. data/spec/integration/v1/identity/userinfo_get_spec.rb +65 -0
  116. data/spec/integration/v1/invoices/invoice_cancel_spec.rb +23 -0
  117. data/spec/integration/v1/invoices/invoice_create_spec.rb +15 -0
  118. data/spec/integration/v1/invoices/invoice_delete_external_payment_spec.rb +23 -0
  119. data/spec/integration/v1/invoices/invoice_delete_external_refund_spec.rb +21 -0
  120. data/spec/integration/v1/invoices/invoice_delete_spec.rb +16 -0
  121. data/spec/integration/v1/invoices/invoice_get_spec.rb +18 -0
  122. data/spec/integration/v1/invoices/invoice_helper.rb +171 -0
  123. data/spec/integration/v1/invoices/invoice_list_spec.rb +20 -0
  124. data/spec/integration/v1/invoices/invoice_next_invoice_number_spec.rb +14 -0
  125. data/spec/integration/v1/invoices/invoice_qr_code_spec.rb +18 -0
  126. data/spec/integration/v1/invoices/invoice_record_payment_spec.rb +14 -0
  127. data/spec/integration/v1/invoices/invoice_record_refund_spec.rb +14 -0
  128. data/spec/integration/v1/invoices/invoice_remind_spec.rb +22 -0
  129. data/spec/integration/v1/invoices/invoice_search_spec.rb +20 -0
  130. data/spec/integration/v1/invoices/invoice_send_spec.rb +15 -0
  131. data/spec/integration/v1/invoices/invoice_update_spec.rb +26 -0
  132. data/spec/integration/v1/invoices/template_create_spec.rb +14 -0
  133. data/spec/integration/v1/invoices/template_delete_spec.rb +15 -0
  134. data/spec/integration/v1/invoices/template_get_spec.rb +18 -0
  135. data/spec/integration/v1/invoices/template_list_spec.rb +15 -0
  136. data/spec/integration/v1/invoices/template_update_spec.rb +62 -0
  137. data/spec/integration/v1/orders/orders_cancel_spec.rb +15 -0
  138. data/spec/integration/v1/orders/orders_create_spec.rb +17 -0
  139. data/spec/integration/v1/orders/orders_get_spec.rb +18 -0
  140. data/spec/integration/v1/orders/orders_helper.rb +36 -0
  141. data/spec/integration/v1/orders/orders_pay_spec.rb +19 -0
  142. data/spec/integration/v1/payment_experience/pe_helper.rb +35 -0
  143. data/spec/integration/v1/payment_experience/web_profile_create_spec.rb +20 -0
  144. data/spec/integration/v1/payment_experience/web_profile_delete_spec.rb +15 -0
  145. data/spec/integration/v1/payment_experience/web_profile_get_spec.rb +17 -0
  146. data/spec/integration/v1/payment_experience/web_profile_list_spec.rb +18 -0
  147. data/spec/integration/v1/payment_experience/web_profile_partial_update_spec.rb +32 -0
  148. data/spec/integration/v1/payment_experience/web_profile_update_spec.rb +44 -0
  149. data/spec/integration/v1/payments/authorization_capture_spec.rb +17 -0
  150. data/spec/integration/v1/payments/authorization_get_spec.rb +18 -0
  151. data/spec/integration/v1/payments/authorization_reauthorize_spec.rb +26 -0
  152. data/spec/integration/v1/payments/authorization_void_spec.rb +19 -0
  153. data/spec/integration/v1/payments/capture_get_spec.rb +20 -0
  154. data/spec/integration/v1/payments/capture_refund_spec.rb +27 -0
  155. data/spec/integration/v1/payments/order_authorize_spec.rb +20 -0
  156. data/spec/integration/v1/payments/order_capture_spec.rb +21 -0
  157. data/spec/integration/v1/payments/order_get_spec.rb +14 -0
  158. data/spec/integration/v1/payments/order_void_spec.rb +14 -0
  159. data/spec/integration/v1/payments/payment_create_spec.rb +13 -0
  160. data/spec/integration/v1/payments/payment_execute_spec.rb +19 -0
  161. data/spec/integration/v1/payments/payment_get_spec.rb +17 -0
  162. data/spec/integration/v1/payments/payment_list_spec.rb +16 -0
  163. data/spec/integration/v1/payments/payment_update_spec.rb +28 -0
  164. data/spec/integration/v1/payments/payments_helper.rb +78 -0
  165. data/spec/integration/v1/payments/refund_get_spec.rb +19 -0
  166. data/spec/integration/v1/payments/sale_get_spec.rb +18 -0
  167. data/spec/integration/v1/payments/sale_refund_spec.rb +18 -0
  168. data/spec/integration/v1/sync/search_get_spec.rb +34 -0
  169. data/spec/integration/v1/vault/credit_card_create_spec.rb +16 -0
  170. data/spec/integration/v1/vault/credit_card_delete_spec.rb +16 -0
  171. data/spec/integration/v1/vault/credit_card_get_spec.rb +17 -0
  172. data/spec/integration/v1/vault/credit_card_list_spec.rb +18 -0
  173. data/spec/integration/v1/vault/credit_card_update_spec.rb +26 -0
  174. data/spec/integration/v1/vault/vault_helper.rb +28 -0
  175. data/spec/integration/v1/webhooks/available_event_type_list_spec.rb +16 -0
  176. data/spec/integration/v1/webhooks/webhook_create_spec.rb +12 -0
  177. data/spec/integration/v1/webhooks/webhook_delete_spec.rb +13 -0
  178. data/spec/integration/v1/webhooks/webhook_get_spec.rb +16 -0
  179. data/spec/integration/v1/webhooks/webhook_helper.rb +42 -0
  180. data/spec/integration/v1/webhooks/webhook_list_event_subscriptions_spec.rb +16 -0
  181. data/spec/integration/v1/webhooks/webhook_list_spec.rb +15 -0
  182. data/spec/integration/v1/webhooks/webhook_update_spec.rb +29 -0
  183. data/spec/integration/v1/webhooks/webhook_verify_signature_spec.rb +20 -0
  184. data/spec/log/http.log +0 -0
  185. data/spec/log/rest_http.log +0 -0
  186. data/spec/spec_helper.rb +98 -26
  187. data/spec/unit/paypal_http_client_spec.rb +272 -0
  188. metadata +277 -119
  189. data/Rakefile +0 -15
  190. data/data/DigiCertHighAssuranceEVRootCA.pem +0 -23
  191. data/data/DigiCertSHA2ExtendedValidationServerCA.pem +0 -28
  192. data/data/paypal.crt +0 -171
  193. data/lib/generators/paypal/sdk/USAGE +0 -3
  194. data/lib/generators/paypal/sdk/install_generator.rb +0 -17
  195. data/lib/generators/paypal/sdk/templates/paypal.rb +0 -2
  196. data/lib/generators/paypal/sdk/templates/paypal.yml +0 -29
  197. data/lib/paypal-sdk-core.rb +0 -38
  198. data/lib/paypal-sdk/core/api.rb +0 -20
  199. data/lib/paypal-sdk/core/api/base.rb +0 -169
  200. data/lib/paypal-sdk/core/api/data_types/array_with_block.rb +0 -44
  201. data/lib/paypal-sdk/core/api/data_types/base.rb +0 -225
  202. data/lib/paypal-sdk/core/api/data_types/enum.rb +0 -26
  203. data/lib/paypal-sdk/core/api/data_types/simple_types.rb +0 -52
  204. data/lib/paypal-sdk/core/api/ipn.rb +0 -66
  205. data/lib/paypal-sdk/core/api/rest.rb +0 -177
  206. data/lib/paypal-sdk/core/authentication.rb +0 -66
  207. data/lib/paypal-sdk/core/config.rb +0 -253
  208. data/lib/paypal-sdk/core/credential.rb +0 -16
  209. data/lib/paypal-sdk/core/credential/base.rb +0 -27
  210. data/lib/paypal-sdk/core/credential/certificate.rb +0 -32
  211. data/lib/paypal-sdk/core/credential/signature.rb +0 -22
  212. data/lib/paypal-sdk/core/credential/third_party/subject.rb +0 -25
  213. data/lib/paypal-sdk/core/credential/third_party/token.rb +0 -39
  214. data/lib/paypal-sdk/core/exceptions.rb +0 -112
  215. data/lib/paypal-sdk/core/logging.rb +0 -50
  216. data/lib/paypal-sdk/core/openid_connect.rb +0 -140
  217. data/lib/paypal-sdk/core/openid_connect/api.rb +0 -50
  218. data/lib/paypal-sdk/core/openid_connect/data_types.rb +0 -73
  219. data/lib/paypal-sdk/core/openid_connect/get_api.rb +0 -28
  220. data/lib/paypal-sdk/core/openid_connect/request_data_type.rb +0 -52
  221. data/lib/paypal-sdk/core/openid_connect/set_api.rb +0 -36
  222. data/lib/paypal-sdk/core/util.rb +0 -11
  223. data/lib/paypal-sdk/core/util/http_helper.rb +0 -171
  224. data/lib/paypal-sdk/core/util/oauth_signature.rb +0 -64
  225. data/lib/paypal-sdk/core/util/ordered_hash.rb +0 -165
  226. data/lib/paypal-sdk/rest.rb +0 -39
  227. data/lib/paypal-sdk/rest/api.rb +0 -23
  228. data/lib/paypal-sdk/rest/data_types.rb +0 -2596
  229. data/lib/paypal-sdk/rest/error_hash.rb +0 -39
  230. data/lib/paypal-sdk/rest/get_api.rb +0 -20
  231. data/lib/paypal-sdk/rest/request_data_type.rb +0 -53
  232. data/lib/paypal-sdk/rest/set_api.rb +0 -42
  233. data/lib/paypal-sdk/rest/version.rb +0 -7
  234. data/spec/README.md +0 -22
  235. data/spec/config/cacert.pem +0 -171
  236. data/spec/config/cert_key.pem +0 -33
  237. data/spec/config/paypal.yml +0 -35
  238. data/spec/config/sample_data.yml +0 -3
  239. data/spec/core/api/data_type_spec.rb +0 -289
  240. data/spec/core/api/rest_spec.rb +0 -211
  241. data/spec/core/config_spec.rb +0 -192
  242. data/spec/core/logging_spec.rb +0 -28
  243. data/spec/core/openid_connect_spec.rb +0 -153
  244. data/spec/invoice_examples_spec.rb +0 -38
  245. data/spec/payments_examples_spec.rb +0 -437
  246. data/spec/payouts_examples_spec.rb +0 -49
  247. data/spec/rest/data_types_spec.rb +0 -62
  248. data/spec/rest/error_hash_spec.rb +0 -83
  249. data/spec/subscription_examples_spec.rb +0 -227
  250. data/spec/support/sample_data.rb +0 -5
  251. data/spec/web_profile_examples_spec.rb +0 -106
  252. data/spec/webhooks_examples_spec.rb +0 -93
metadata CHANGED
@@ -1,57 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal-sdk-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 2.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-06 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: coveralls
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: xml-simple
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: multi_json
14
+ name: braintreehttp
43
15
  requirement: !ruby/object:Gem::Requirement
44
16
  requirements:
45
17
  - - "~>"
46
18
  - !ruby/object:Gem::Version
47
- version: '1.0'
19
+ version: 0.5.0
48
20
  type: :runtime
49
21
  prerelease: false
50
22
  version_requirements: !ruby/object:Gem::Requirement
51
23
  requirements:
52
24
  - - "~>"
53
25
  - !ruby/object:Gem::Version
54
- version: '1.0'
26
+ version: 0.5.0
55
27
  description: The PayPal REST SDK provides Ruby APIs to create, process and manage
56
28
  payment.
57
29
  email:
@@ -62,72 +34,190 @@ extra_rdoc_files: []
62
34
  files:
63
35
  - Gemfile
64
36
  - README.md
65
- - Rakefile
66
- - data/DigiCertHighAssuranceEVRootCA.pem
67
- - data/DigiCertSHA2ExtendedValidationServerCA.pem
68
- - data/paypal.crt
69
- - lib/generators/paypal/sdk/USAGE
70
- - lib/generators/paypal/sdk/install_generator.rb
71
- - lib/generators/paypal/sdk/templates/paypal.rb
72
- - lib/generators/paypal/sdk/templates/paypal.yml
73
- - lib/paypal-sdk-core.rb
37
+ - lib/lib.rb
74
38
  - lib/paypal-sdk-rest.rb
75
- - lib/paypal-sdk/core/api.rb
76
- - lib/paypal-sdk/core/api/base.rb
77
- - lib/paypal-sdk/core/api/data_types/array_with_block.rb
78
- - lib/paypal-sdk/core/api/data_types/base.rb
79
- - lib/paypal-sdk/core/api/data_types/enum.rb
80
- - lib/paypal-sdk/core/api/data_types/simple_types.rb
81
- - lib/paypal-sdk/core/api/ipn.rb
82
- - lib/paypal-sdk/core/api/rest.rb
83
- - lib/paypal-sdk/core/authentication.rb
84
- - lib/paypal-sdk/core/config.rb
85
- - lib/paypal-sdk/core/credential.rb
86
- - lib/paypal-sdk/core/credential/base.rb
87
- - lib/paypal-sdk/core/credential/certificate.rb
88
- - lib/paypal-sdk/core/credential/signature.rb
89
- - lib/paypal-sdk/core/credential/third_party/subject.rb
90
- - lib/paypal-sdk/core/credential/third_party/token.rb
91
- - lib/paypal-sdk/core/exceptions.rb
92
- - lib/paypal-sdk/core/logging.rb
93
- - lib/paypal-sdk/core/openid_connect.rb
94
- - lib/paypal-sdk/core/openid_connect/api.rb
95
- - lib/paypal-sdk/core/openid_connect/data_types.rb
96
- - lib/paypal-sdk/core/openid_connect/get_api.rb
97
- - lib/paypal-sdk/core/openid_connect/request_data_type.rb
98
- - lib/paypal-sdk/core/openid_connect/set_api.rb
99
- - lib/paypal-sdk/core/util.rb
100
- - lib/paypal-sdk/core/util/http_helper.rb
101
- - lib/paypal-sdk/core/util/oauth_signature.rb
102
- - lib/paypal-sdk/core/util/ordered_hash.rb
103
- - lib/paypal-sdk/rest.rb
104
- - lib/paypal-sdk/rest/api.rb
105
- - lib/paypal-sdk/rest/data_types.rb
106
- - lib/paypal-sdk/rest/error_hash.rb
107
- - lib/paypal-sdk/rest/get_api.rb
108
- - lib/paypal-sdk/rest/request_data_type.rb
109
- - lib/paypal-sdk/rest/set_api.rb
110
- - lib/paypal-sdk/rest/version.rb
111
- - spec/README.md
112
- - spec/config/cacert.pem
113
- - spec/config/cert_key.pem
114
- - spec/config/paypal.yml
115
- - spec/config/sample_data.yml
116
- - spec/core/api/data_type_spec.rb
117
- - spec/core/api/rest_spec.rb
118
- - spec/core/config_spec.rb
119
- - spec/core/logging_spec.rb
120
- - spec/core/openid_connect_spec.rb
121
- - spec/invoice_examples_spec.rb
122
- - spec/payments_examples_spec.rb
123
- - spec/payouts_examples_spec.rb
124
- - spec/rest/data_types_spec.rb
125
- - spec/rest/error_hash_spec.rb
39
+ - lib/paypal/core/access_token.rb
40
+ - lib/paypal/core/paypal_environment.rb
41
+ - lib/paypal/core/paypal_http_client.rb
42
+ - lib/paypal/core/token_requests.rb
43
+ - lib/paypal/core/version.rb
44
+ - lib/v1/billing_agreements/agreement_bill_balance_request.rb
45
+ - lib/v1/billing_agreements/agreement_cancel_request.rb
46
+ - lib/v1/billing_agreements/agreement_create_request.rb
47
+ - lib/v1/billing_agreements/agreement_execute_request.rb
48
+ - lib/v1/billing_agreements/agreement_get_request.rb
49
+ - lib/v1/billing_agreements/agreement_re_activate_request.rb
50
+ - lib/v1/billing_agreements/agreement_set_balance_request.rb
51
+ - lib/v1/billing_agreements/agreement_suspend_request.rb
52
+ - lib/v1/billing_agreements/agreement_transactions_request.rb
53
+ - lib/v1/billing_agreements/agreement_update_request.rb
54
+ - lib/v1/billing_plans/plan_create_request.rb
55
+ - lib/v1/billing_plans/plan_get_request.rb
56
+ - lib/v1/billing_plans/plan_list_request.rb
57
+ - lib/v1/billing_plans/plan_update_request.rb
58
+ - lib/v1/customer_disputes/dispute_accept_claim_request.rb
59
+ - lib/v1/customer_disputes/dispute_adjudicate_request.rb
60
+ - lib/v1/customer_disputes/dispute_appeal_request.rb
61
+ - lib/v1/customer_disputes/dispute_get_request.rb
62
+ - lib/v1/customer_disputes/dispute_list_request.rb
63
+ - lib/v1/customer_disputes/dispute_provide_evidence_request.rb
64
+ - lib/v1/customer_disputes/dispute_require_evidence_request.rb
65
+ - lib/v1/identity/user_consent.rb
66
+ - lib/v1/identity/userinfo_get_request.rb
67
+ - lib/v1/invoices/invoice_cancel_request.rb
68
+ - lib/v1/invoices/invoice_create_request.rb
69
+ - lib/v1/invoices/invoice_delete_external_payment_request.rb
70
+ - lib/v1/invoices/invoice_delete_external_refund_request.rb
71
+ - lib/v1/invoices/invoice_delete_request.rb
72
+ - lib/v1/invoices/invoice_get_request.rb
73
+ - lib/v1/invoices/invoice_list_request.rb
74
+ - lib/v1/invoices/invoice_next_invoice_number_request.rb
75
+ - lib/v1/invoices/invoice_qr_code_request.rb
76
+ - lib/v1/invoices/invoice_record_payment_request.rb
77
+ - lib/v1/invoices/invoice_record_refund_request.rb
78
+ - lib/v1/invoices/invoice_remind_request.rb
79
+ - lib/v1/invoices/invoice_search_request.rb
80
+ - lib/v1/invoices/invoice_send_request.rb
81
+ - lib/v1/invoices/invoice_update_request.rb
82
+ - lib/v1/invoices/template_create_request.rb
83
+ - lib/v1/invoices/template_delete_request.rb
84
+ - lib/v1/invoices/template_get_request.rb
85
+ - lib/v1/invoices/template_list_request.rb
86
+ - lib/v1/invoices/template_update_request.rb
87
+ - lib/v1/orders/orders_cancel_request.rb
88
+ - lib/v1/orders/orders_create_request.rb
89
+ - lib/v1/orders/orders_get_request.rb
90
+ - lib/v1/orders/orders_pay_request.rb
91
+ - lib/v1/payment_experience/web_profile_create_request.rb
92
+ - lib/v1/payment_experience/web_profile_delete_request.rb
93
+ - lib/v1/payment_experience/web_profile_get_request.rb
94
+ - lib/v1/payment_experience/web_profile_list_request.rb
95
+ - lib/v1/payment_experience/web_profile_partial_update_request.rb
96
+ - lib/v1/payment_experience/web_profile_update_request.rb
97
+ - lib/v1/payments/authorization_capture_request.rb
98
+ - lib/v1/payments/authorization_get_request.rb
99
+ - lib/v1/payments/authorization_reauthorize_request.rb
100
+ - lib/v1/payments/authorization_void_request.rb
101
+ - lib/v1/payments/capture_get_request.rb
102
+ - lib/v1/payments/capture_refund_request.rb
103
+ - lib/v1/payments/order_authorize_request.rb
104
+ - lib/v1/payments/order_capture_request.rb
105
+ - lib/v1/payments/order_get_request.rb
106
+ - lib/v1/payments/order_void_request.rb
107
+ - lib/v1/payments/payment_create_request.rb
108
+ - lib/v1/payments/payment_execute_request.rb
109
+ - lib/v1/payments/payment_get_request.rb
110
+ - lib/v1/payments/payment_list_request.rb
111
+ - lib/v1/payments/payment_update_request.rb
112
+ - lib/v1/payments/refund_get_request.rb
113
+ - lib/v1/payments/sale_get_request.rb
114
+ - lib/v1/payments/sale_refund_request.rb
115
+ - lib/v1/sync/search_get_request.rb
116
+ - lib/v1/vault/credit_card_create_request.rb
117
+ - lib/v1/vault/credit_card_delete_request.rb
118
+ - lib/v1/vault/credit_card_get_request.rb
119
+ - lib/v1/vault/credit_card_list_request.rb
120
+ - lib/v1/vault/credit_card_update_request.rb
121
+ - lib/v1/webhooks/available_event_type_list_request.rb
122
+ - lib/v1/webhooks/event_get_request.rb
123
+ - lib/v1/webhooks/event_list_request.rb
124
+ - lib/v1/webhooks/event_resend_request.rb
125
+ - lib/v1/webhooks/simulate_event_request.rb
126
+ - lib/v1/webhooks/webhook_create_request.rb
127
+ - lib/v1/webhooks/webhook_delete_request.rb
128
+ - lib/v1/webhooks/webhook_get_request.rb
129
+ - lib/v1/webhooks/webhook_list_event_subscriptions_request.rb
130
+ - lib/v1/webhooks/webhook_list_request.rb
131
+ - lib/v1/webhooks/webhook_update_request.rb
132
+ - lib/v1/webhooks/webhook_verify_signature_request.rb
133
+ - spec/integration/test_harness.rb
134
+ - spec/integration/v1/billing_agreements/agreement_create_spec.rb
135
+ - spec/integration/v1/billing_plans/plan_create_spec.rb
136
+ - spec/integration/v1/billing_plans/plan_get_spec.rb
137
+ - spec/integration/v1/billing_plans/plan_helper.rb
138
+ - spec/integration/v1/billing_plans/plan_list_spec.rb
139
+ - spec/integration/v1/billing_plans/plan_update_spec.rb
140
+ - spec/integration/v1/customer_disputes/dispute_accept_claim_spec.rb
141
+ - spec/integration/v1/customer_disputes/dispute_adjudicate_spec.rb
142
+ - spec/integration/v1/customer_disputes/dispute_appeal_spec.rb
143
+ - spec/integration/v1/customer_disputes/dispute_get_spec.rb
144
+ - spec/integration/v1/customer_disputes/dispute_list_spec.rb
145
+ - spec/integration/v1/customer_disputes/dispute_provide_evidence_spec.rb
146
+ - spec/integration/v1/customer_disputes/dispute_require_evidence_spec.rb
147
+ - spec/integration/v1/customer_disputes/test_image.png
148
+ - spec/integration/v1/identity/userinfo_get_spec.rb
149
+ - spec/integration/v1/invoices/invoice_cancel_spec.rb
150
+ - spec/integration/v1/invoices/invoice_create_spec.rb
151
+ - spec/integration/v1/invoices/invoice_delete_external_payment_spec.rb
152
+ - spec/integration/v1/invoices/invoice_delete_external_refund_spec.rb
153
+ - spec/integration/v1/invoices/invoice_delete_spec.rb
154
+ - spec/integration/v1/invoices/invoice_get_spec.rb
155
+ - spec/integration/v1/invoices/invoice_helper.rb
156
+ - spec/integration/v1/invoices/invoice_list_spec.rb
157
+ - spec/integration/v1/invoices/invoice_next_invoice_number_spec.rb
158
+ - spec/integration/v1/invoices/invoice_qr_code_spec.rb
159
+ - spec/integration/v1/invoices/invoice_record_payment_spec.rb
160
+ - spec/integration/v1/invoices/invoice_record_refund_spec.rb
161
+ - spec/integration/v1/invoices/invoice_remind_spec.rb
162
+ - spec/integration/v1/invoices/invoice_search_spec.rb
163
+ - spec/integration/v1/invoices/invoice_send_spec.rb
164
+ - spec/integration/v1/invoices/invoice_update_spec.rb
165
+ - spec/integration/v1/invoices/template_create_spec.rb
166
+ - spec/integration/v1/invoices/template_delete_spec.rb
167
+ - spec/integration/v1/invoices/template_get_spec.rb
168
+ - spec/integration/v1/invoices/template_list_spec.rb
169
+ - spec/integration/v1/invoices/template_update_spec.rb
170
+ - spec/integration/v1/orders/orders_cancel_spec.rb
171
+ - spec/integration/v1/orders/orders_create_spec.rb
172
+ - spec/integration/v1/orders/orders_get_spec.rb
173
+ - spec/integration/v1/orders/orders_helper.rb
174
+ - spec/integration/v1/orders/orders_pay_spec.rb
175
+ - spec/integration/v1/payment_experience/pe_helper.rb
176
+ - spec/integration/v1/payment_experience/web_profile_create_spec.rb
177
+ - spec/integration/v1/payment_experience/web_profile_delete_spec.rb
178
+ - spec/integration/v1/payment_experience/web_profile_get_spec.rb
179
+ - spec/integration/v1/payment_experience/web_profile_list_spec.rb
180
+ - spec/integration/v1/payment_experience/web_profile_partial_update_spec.rb
181
+ - spec/integration/v1/payment_experience/web_profile_update_spec.rb
182
+ - spec/integration/v1/payments/authorization_capture_spec.rb
183
+ - spec/integration/v1/payments/authorization_get_spec.rb
184
+ - spec/integration/v1/payments/authorization_reauthorize_spec.rb
185
+ - spec/integration/v1/payments/authorization_void_spec.rb
186
+ - spec/integration/v1/payments/capture_get_spec.rb
187
+ - spec/integration/v1/payments/capture_refund_spec.rb
188
+ - spec/integration/v1/payments/order_authorize_spec.rb
189
+ - spec/integration/v1/payments/order_capture_spec.rb
190
+ - spec/integration/v1/payments/order_get_spec.rb
191
+ - spec/integration/v1/payments/order_void_spec.rb
192
+ - spec/integration/v1/payments/payment_create_spec.rb
193
+ - spec/integration/v1/payments/payment_execute_spec.rb
194
+ - spec/integration/v1/payments/payment_get_spec.rb
195
+ - spec/integration/v1/payments/payment_list_spec.rb
196
+ - spec/integration/v1/payments/payment_update_spec.rb
197
+ - spec/integration/v1/payments/payments_helper.rb
198
+ - spec/integration/v1/payments/refund_get_spec.rb
199
+ - spec/integration/v1/payments/sale_get_spec.rb
200
+ - spec/integration/v1/payments/sale_refund_spec.rb
201
+ - spec/integration/v1/sync/search_get_spec.rb
202
+ - spec/integration/v1/vault/credit_card_create_spec.rb
203
+ - spec/integration/v1/vault/credit_card_delete_spec.rb
204
+ - spec/integration/v1/vault/credit_card_get_spec.rb
205
+ - spec/integration/v1/vault/credit_card_list_spec.rb
206
+ - spec/integration/v1/vault/credit_card_update_spec.rb
207
+ - spec/integration/v1/vault/vault_helper.rb
208
+ - spec/integration/v1/webhooks/available_event_type_list_spec.rb
209
+ - spec/integration/v1/webhooks/webhook_create_spec.rb
210
+ - spec/integration/v1/webhooks/webhook_delete_spec.rb
211
+ - spec/integration/v1/webhooks/webhook_get_spec.rb
212
+ - spec/integration/v1/webhooks/webhook_helper.rb
213
+ - spec/integration/v1/webhooks/webhook_list_event_subscriptions_spec.rb
214
+ - spec/integration/v1/webhooks/webhook_list_spec.rb
215
+ - spec/integration/v1/webhooks/webhook_update_spec.rb
216
+ - spec/integration/v1/webhooks/webhook_verify_signature_spec.rb
217
+ - spec/log/http.log
218
+ - spec/log/rest_http.log
126
219
  - spec/spec_helper.rb
127
- - spec/subscription_examples_spec.rb
128
- - spec/support/sample_data.rb
129
- - spec/web_profile_examples_spec.rb
130
- - spec/webhooks_examples_spec.rb
220
+ - spec/unit/paypal_http_client_spec.rb
131
221
  homepage: https://developer.paypal.com
132
222
  licenses:
133
223
  - PayPal SDK License
@@ -143,33 +233,101 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
233
  version: '0'
144
234
  required_rubygems_version: !ruby/object:Gem::Requirement
145
235
  requirements:
146
- - - ">="
236
+ - - ">"
147
237
  - !ruby/object:Gem::Version
148
- version: '0'
238
+ version: 1.3.1
149
239
  requirements: []
150
240
  rubyforge_project:
151
- rubygems_version: 2.7.6
241
+ rubygems_version: 2.6.11
152
242
  signing_key:
153
243
  specification_version: 4
154
244
  summary: The PayPal REST SDK provides Ruby APIs to create, process and manage payment.
155
245
  test_files:
156
- - spec/README.md
157
- - spec/config/cacert.pem
158
- - spec/config/cert_key.pem
159
- - spec/config/paypal.yml
160
- - spec/config/sample_data.yml
161
- - spec/core/api/data_type_spec.rb
162
- - spec/core/api/rest_spec.rb
163
- - spec/core/config_spec.rb
164
- - spec/core/logging_spec.rb
165
- - spec/core/openid_connect_spec.rb
166
- - spec/invoice_examples_spec.rb
167
- - spec/payments_examples_spec.rb
168
- - spec/payouts_examples_spec.rb
169
- - spec/rest/data_types_spec.rb
170
- - spec/rest/error_hash_spec.rb
246
+ - spec/integration/test_harness.rb
247
+ - spec/integration/v1/billing_agreements/agreement_create_spec.rb
248
+ - spec/integration/v1/billing_plans/plan_create_spec.rb
249
+ - spec/integration/v1/billing_plans/plan_get_spec.rb
250
+ - spec/integration/v1/billing_plans/plan_helper.rb
251
+ - spec/integration/v1/billing_plans/plan_list_spec.rb
252
+ - spec/integration/v1/billing_plans/plan_update_spec.rb
253
+ - spec/integration/v1/customer_disputes/dispute_accept_claim_spec.rb
254
+ - spec/integration/v1/customer_disputes/dispute_adjudicate_spec.rb
255
+ - spec/integration/v1/customer_disputes/dispute_appeal_spec.rb
256
+ - spec/integration/v1/customer_disputes/dispute_get_spec.rb
257
+ - spec/integration/v1/customer_disputes/dispute_list_spec.rb
258
+ - spec/integration/v1/customer_disputes/dispute_provide_evidence_spec.rb
259
+ - spec/integration/v1/customer_disputes/dispute_require_evidence_spec.rb
260
+ - spec/integration/v1/customer_disputes/test_image.png
261
+ - spec/integration/v1/identity/userinfo_get_spec.rb
262
+ - spec/integration/v1/invoices/invoice_cancel_spec.rb
263
+ - spec/integration/v1/invoices/invoice_create_spec.rb
264
+ - spec/integration/v1/invoices/invoice_delete_external_payment_spec.rb
265
+ - spec/integration/v1/invoices/invoice_delete_external_refund_spec.rb
266
+ - spec/integration/v1/invoices/invoice_delete_spec.rb
267
+ - spec/integration/v1/invoices/invoice_get_spec.rb
268
+ - spec/integration/v1/invoices/invoice_helper.rb
269
+ - spec/integration/v1/invoices/invoice_list_spec.rb
270
+ - spec/integration/v1/invoices/invoice_next_invoice_number_spec.rb
271
+ - spec/integration/v1/invoices/invoice_qr_code_spec.rb
272
+ - spec/integration/v1/invoices/invoice_record_payment_spec.rb
273
+ - spec/integration/v1/invoices/invoice_record_refund_spec.rb
274
+ - spec/integration/v1/invoices/invoice_remind_spec.rb
275
+ - spec/integration/v1/invoices/invoice_search_spec.rb
276
+ - spec/integration/v1/invoices/invoice_send_spec.rb
277
+ - spec/integration/v1/invoices/invoice_update_spec.rb
278
+ - spec/integration/v1/invoices/template_create_spec.rb
279
+ - spec/integration/v1/invoices/template_delete_spec.rb
280
+ - spec/integration/v1/invoices/template_get_spec.rb
281
+ - spec/integration/v1/invoices/template_list_spec.rb
282
+ - spec/integration/v1/invoices/template_update_spec.rb
283
+ - spec/integration/v1/orders/orders_cancel_spec.rb
284
+ - spec/integration/v1/orders/orders_create_spec.rb
285
+ - spec/integration/v1/orders/orders_get_spec.rb
286
+ - spec/integration/v1/orders/orders_helper.rb
287
+ - spec/integration/v1/orders/orders_pay_spec.rb
288
+ - spec/integration/v1/payment_experience/pe_helper.rb
289
+ - spec/integration/v1/payment_experience/web_profile_create_spec.rb
290
+ - spec/integration/v1/payment_experience/web_profile_delete_spec.rb
291
+ - spec/integration/v1/payment_experience/web_profile_get_spec.rb
292
+ - spec/integration/v1/payment_experience/web_profile_list_spec.rb
293
+ - spec/integration/v1/payment_experience/web_profile_partial_update_spec.rb
294
+ - spec/integration/v1/payment_experience/web_profile_update_spec.rb
295
+ - spec/integration/v1/payments/authorization_capture_spec.rb
296
+ - spec/integration/v1/payments/authorization_get_spec.rb
297
+ - spec/integration/v1/payments/authorization_reauthorize_spec.rb
298
+ - spec/integration/v1/payments/authorization_void_spec.rb
299
+ - spec/integration/v1/payments/capture_get_spec.rb
300
+ - spec/integration/v1/payments/capture_refund_spec.rb
301
+ - spec/integration/v1/payments/order_authorize_spec.rb
302
+ - spec/integration/v1/payments/order_capture_spec.rb
303
+ - spec/integration/v1/payments/order_get_spec.rb
304
+ - spec/integration/v1/payments/order_void_spec.rb
305
+ - spec/integration/v1/payments/payment_create_spec.rb
306
+ - spec/integration/v1/payments/payment_execute_spec.rb
307
+ - spec/integration/v1/payments/payment_get_spec.rb
308
+ - spec/integration/v1/payments/payment_list_spec.rb
309
+ - spec/integration/v1/payments/payment_update_spec.rb
310
+ - spec/integration/v1/payments/payments_helper.rb
311
+ - spec/integration/v1/payments/refund_get_spec.rb
312
+ - spec/integration/v1/payments/sale_get_spec.rb
313
+ - spec/integration/v1/payments/sale_refund_spec.rb
314
+ - spec/integration/v1/sync/search_get_spec.rb
315
+ - spec/integration/v1/vault/credit_card_create_spec.rb
316
+ - spec/integration/v1/vault/credit_card_delete_spec.rb
317
+ - spec/integration/v1/vault/credit_card_get_spec.rb
318
+ - spec/integration/v1/vault/credit_card_list_spec.rb
319
+ - spec/integration/v1/vault/credit_card_update_spec.rb
320
+ - spec/integration/v1/vault/vault_helper.rb
321
+ - spec/integration/v1/webhooks/available_event_type_list_spec.rb
322
+ - spec/integration/v1/webhooks/webhook_create_spec.rb
323
+ - spec/integration/v1/webhooks/webhook_delete_spec.rb
324
+ - spec/integration/v1/webhooks/webhook_get_spec.rb
325
+ - spec/integration/v1/webhooks/webhook_helper.rb
326
+ - spec/integration/v1/webhooks/webhook_list_event_subscriptions_spec.rb
327
+ - spec/integration/v1/webhooks/webhook_list_spec.rb
328
+ - spec/integration/v1/webhooks/webhook_update_spec.rb
329
+ - spec/integration/v1/webhooks/webhook_verify_signature_spec.rb
330
+ - spec/log/http.log
331
+ - spec/log/rest_http.log
171
332
  - spec/spec_helper.rb
172
- - spec/subscription_examples_spec.rb
173
- - spec/support/sample_data.rb
174
- - spec/web_profile_examples_spec.rb
175
- - spec/webhooks_examples_spec.rb
333
+ - spec/unit/paypal_http_client_spec.rb
data/Rakefile DELETED
@@ -1,15 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
3
- # release will instead be declared by the releasinator
4
- Rake::Task["release"].clear
5
-
6
- spec = Gem::Specification.find_by_name 'releasinator'
7
- load "#{spec.gem_dir}/lib/tasks/releasinator.rake"
8
-
9
- desc "Run tests"
10
- task :rspec do
11
- cmd = "bundle exec rspec -f d"
12
- system(cmd) || raise("#{cmd} failed")
13
- end
14
-
15
- task :default => :rspec