square.rb 3.3.0.20191217 → 3.20190624.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +28 -10
  3. data/README.md +17235 -285
  4. data/lib/square/api/apple_pay_api.rb +7 -3
  5. data/lib/square/api/base_api.rb +8 -6
  6. data/lib/square/api/catalog_api.rb +23 -108
  7. data/lib/square/api/checkout_api.rb +5 -0
  8. data/lib/square/api/customers_api.rb +17 -10
  9. data/lib/square/api/employees_api.rb +7 -2
  10. data/lib/square/api/inventory_api.rb +9 -6
  11. data/lib/square/api/labor_api.rb +5 -0
  12. data/lib/square/api/locations_api.rb +6 -107
  13. data/lib/square/api/mobile_authorization_api.rb +8 -4
  14. data/lib/square/api/o_auth_api.rb +8 -7
  15. data/lib/square/api/orders_api.rb +30 -145
  16. data/lib/square/api/reporting_api.rb +9 -8
  17. data/lib/square/api/transactions_api.rb +15 -32
  18. data/lib/square/api/v1_employees_api.rb +8 -3
  19. data/lib/square/api/v1_items_api.rb +50 -445
  20. data/lib/square/api/v1_locations_api.rb +7 -23
  21. data/lib/square/api/v1_transactions_api.rb +7 -1
  22. data/lib/square/api_helper.rb +5 -4
  23. data/lib/square/client.rb +7 -36
  24. data/lib/square/configuration.rb +8 -16
  25. data/lib/square/exceptions/api_exception.rb +5 -0
  26. data/lib/square/http/api_response.rb +5 -0
  27. data/lib/square/http/auth/o_auth2.rb +5 -0
  28. data/lib/square/http/faraday_client.rb +5 -0
  29. data/lib/square/http/http_call_back.rb +5 -0
  30. data/lib/square/http/http_client.rb +5 -0
  31. data/lib/square/http/http_method_enum.rb +5 -0
  32. data/lib/square/http/http_request.rb +5 -0
  33. data/lib/square/http/http_response.rb +5 -0
  34. data/lib/square.rb +5 -4
  35. data/spec/user_journey_spec.rb +14 -15
  36. data/test/api/api_test_base.rb +1 -2
  37. metadata +11 -22
  38. data/lib/square/api/cash_drawers_api.rb +0 -150
  39. data/lib/square/api/merchants_api.rb +0 -82
  40. data/lib/square/api/payments_api.rb +0 -277
  41. data/lib/square/api/refunds_api.rb +0 -144
  42. data/test/api/test_catalog_api.rb +0 -59
  43. data/test/api/test_employees_api.rb +0 -36
  44. data/test/api/test_labor_api.rb +0 -74
  45. data/test/api/test_locations_api.rb +0 -35
  46. data/test/api/test_merchants_api.rb +0 -40
  47. data/test/api/test_payments_api.rb +0 -42
  48. data/test/api/test_refunds_api.rb +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00a4ada597456bcc942f896460303acf6a581aa50f4c9d2a64f1a311ea4d1689
4
- data.tar.gz: b53863a3d76c327f63a52ec3b9beca8bbf2eea59058bf1ea9bce11524fde5a0a
3
+ metadata.gz: 20d5d043521d83f1f05de89f5ef5f9b9daf983c2a89c305b74a3bdd4a70b63c5
4
+ data.tar.gz: 866feb2f67d878321d9a3cb6adec3a7d98b0c113282ce49dbd1b7f7e231a3dab
5
5
  SHA512:
6
- metadata.gz: 8dd7e37e97bab6d4896db1a4e3e16582160c70131ae9d8ff3b27cdf2d874a156a6966b94d22c8c545dae6ee2383f844616bd056d7b3c2fc889f8a69b493cae2a
7
- data.tar.gz: d242bdf3633f6ff99dd2016055b0a7c38de6c3619ae06e255ea2cc7314a6e12bd96a9dbf6e1cd72c3a650b4d7a33bfbdea336f5c8b48fa59f21eacab2723cce9
6
+ metadata.gz: 0d59ec2e0977b9008741af77a33ac348678c2578b0eddf7b87f2ae341a42c13df6e894f15c0290e692a6478a5e0a0fd2b81506f9ad9a4c40b7282a8104fd3ab6
7
+ data.tar.gz: e34cbad36919d6248efc25bf2591d4c974c09fe3e61340544c208041408249e9f4ac644e379772cbf05e526f8f1cf33f005cb4003ad284624171e3ed5b56db53
data/LICENSE CHANGED
@@ -1,10 +1,28 @@
1
- Copyright 2019 Square, Inc.
2
- Licensed under the Apache License, Version 2.0 (the "License");
3
- you may not use this file except in compliance with the License.
4
- You may obtain a copy of the License at
5
- https://www.apache.org/licenses/LICENSE-2.0
6
- Unless required by applicable law or agreed to in writing, software
7
- distributed under the License is distributed on an "AS IS" BASIS,
8
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
- See the License for the specific language governing permissions and
10
- limitations under the License.
1
+ License:
2
+ ========
3
+ The MIT License (MIT)
4
+ http://opensource.org/licenses/MIT
5
+
6
+ Copyright (c) 2014 - 2016 APIMATIC Limited
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
25
+
26
+ Trade Mark:
27
+ ==========
28
+ APIMATIC is a trade mark for APIMATIC Limited