unit_ruby_sdk 0.1.2 → 0.1.4

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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/Gemfile +0 -10
  4. data/README.md +97 -1
  5. data/lib/unit/api_resources/account_resource.rb +125 -0
  6. data/lib/unit/api_resources/api_token_resource.rb +59 -0
  7. data/lib/unit/api_resources/application_resource.rb +9 -9
  8. data/lib/unit/api_resources/base_resource.rb +3 -11
  9. data/lib/unit/api_resources/customer_resource.rb +12 -11
  10. data/lib/unit/api_resources/payment_resource.rb +32 -0
  11. data/lib/unit/api_resources/transaction_resource.rb +40 -0
  12. data/lib/unit/errors/unit_error.rb +7 -13
  13. data/lib/unit/errors/unit_error_payload.rb +15 -2
  14. data/lib/unit/models/account/account.rb +157 -0
  15. data/lib/unit/models/account/deposit/account_owners_request.rb +29 -0
  16. data/lib/unit/models/account/deposit/balance_history_request.rb +39 -0
  17. data/lib/unit/models/account/deposit/close_deposit_account_request.rb +36 -0
  18. data/lib/unit/models/account/deposit/create_deposit_account_request.rb +39 -0
  19. data/lib/unit/models/account/deposit/freeze_account_request.rb +36 -0
  20. data/lib/unit/models/account/deposit/list_account_params.rb +48 -0
  21. data/lib/unit/models/account/deposit/patch_deposit_account_request.rb +36 -0
  22. data/lib/unit/models/api_token/api_token.rb +89 -0
  23. data/lib/unit/models/api_token/customer/create_customer_token_request.rb +41 -0
  24. data/lib/unit/models/api_token/customer/create_customer_token_verification.rb +37 -0
  25. data/lib/unit/models/api_token/customer/create_token_using_jwt_request.rb +30 -0
  26. data/lib/unit/models/api_token/org/create_api_token_request.rb +40 -0
  27. data/lib/unit/models/application/application.rb +127 -0
  28. data/lib/unit/models/application/create_business_application_request.rb +7 -7
  29. data/lib/unit/models/application/create_individual_application_request.rb +14 -14
  30. data/lib/unit/models/application/list_application_params.rb +4 -4
  31. data/lib/unit/models/application/patch_application_request.rb +3 -3
  32. data/lib/unit/models/application/upload_document_request.rb +1 -1
  33. data/lib/unit/models/customer/add_authorized_users_request.rb +3 -3
  34. data/lib/unit/models/customer/archive_customer_request.rb +3 -4
  35. data/lib/unit/models/customer/customer.rb +96 -0
  36. data/lib/unit/models/customer/list_customer_params.rb +10 -12
  37. data/lib/unit/models/customer/patch_business_customer_request.rb +8 -8
  38. data/lib/unit/models/customer/patch_individual_customer_request.rb +9 -10
  39. data/lib/unit/models/customer/remove_authorized_users_request.rb +3 -3
  40. data/lib/unit/models/payment/create_book_payment_request.rb +49 -0
  41. data/lib/unit/models/payment/patch_book_payment_request.rb +31 -0
  42. data/lib/unit/models/payment/payment.rb +37 -0
  43. data/lib/unit/models/transaction/get_transaction_params.rb +28 -0
  44. data/lib/unit/models/transaction/list_transaction_params.rb +70 -0
  45. data/lib/unit/models/transaction/patch_tags_request.rb +33 -0
  46. data/lib/unit/models/transaction/transaction.rb +60 -0
  47. data/lib/unit/models/unit_response.rb +7 -1
  48. data/lib/unit/types/authorized_user.rb +1 -1
  49. data/lib/unit/types/relationship.rb +4 -5
  50. data/lib/unit/types/relationship_array.rb +14 -12
  51. data/lib/unit/types/restricted_resource.rb +23 -0
  52. data/lib/unit/utils/http_helper.rb +56 -0
  53. data/lib/unit/version.rb +1 -1
  54. data/lib/unit_ruby_sdk.rb +22 -21
  55. metadata +76 -7
  56. data/Gemfile.lock +0 -133
data/Gemfile.lock DELETED
@@ -1,133 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- unit_ruby_sdk (0.1.1)
5
- httparty
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionpack (6.1.7)
11
- actionview (= 6.1.7)
12
- activesupport (= 6.1.7)
13
- rack (~> 2.0, >= 2.0.9)
14
- rack-test (>= 0.6.3)
15
- rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
- actionview (6.1.7)
18
- activesupport (= 6.1.7)
19
- builder (~> 3.1)
20
- erubi (~> 1.4)
21
- rails-dom-testing (~> 2.0)
22
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
- activesupport (6.1.7)
24
- concurrent-ruby (~> 1.0, >= 1.0.2)
25
- i18n (>= 1.6, < 2)
26
- minitest (>= 5.1)
27
- tzinfo (~> 2.0)
28
- zeitwerk (~> 2.3)
29
- ast (2.4.2)
30
- builder (3.2.4)
31
- concurrent-ruby (1.1.10)
32
- crass (1.0.6)
33
- diff-lcs (1.5.0)
34
- erubi (1.11.0)
35
- factory_bot (6.2.1)
36
- activesupport (>= 5.0.0)
37
- factory_bot_rails (6.2.0)
38
- factory_bot (~> 6.2.0)
39
- railties (>= 5.0.0)
40
- httparty (0.20.0)
41
- mime-types (~> 3.0)
42
- multi_xml (>= 0.5.2)
43
- i18n (1.12.0)
44
- concurrent-ruby (~> 1.0)
45
- json (2.6.2)
46
- loofah (2.19.0)
47
- crass (~> 1.0.2)
48
- nokogiri (>= 1.5.9)
49
- method_source (1.0.0)
50
- mime-types (3.4.1)
51
- mime-types-data (~> 3.2015)
52
- mime-types-data (3.2022.0105)
53
- minitest (5.16.3)
54
- multi_xml (0.6.0)
55
- nokogiri (1.13.9-arm64-darwin)
56
- racc (~> 1.4)
57
- nokogiri (1.13.9-x86_64-darwin)
58
- racc (~> 1.4)
59
- nokogiri (1.13.9-x86_64-linux)
60
- racc (~> 1.4)
61
- parallel (1.22.1)
62
- parser (3.1.3.0)
63
- ast (~> 2.4.1)
64
- racc (1.6.0)
65
- rack (2.2.4)
66
- rack-test (2.0.2)
67
- rack (>= 1.3)
68
- rails-dom-testing (2.0.3)
69
- activesupport (>= 4.2.0)
70
- nokogiri (>= 1.6)
71
- rails-html-sanitizer (1.4.3)
72
- loofah (~> 2.3)
73
- railties (6.1.7)
74
- actionpack (= 6.1.7)
75
- activesupport (= 6.1.7)
76
- method_source
77
- rake (>= 12.2)
78
- thor (~> 1.0)
79
- rainbow (3.1.1)
80
- rake (13.0.6)
81
- regexp_parser (2.6.1)
82
- rexml (3.2.5)
83
- rspec (3.12.0)
84
- rspec-core (~> 3.12.0)
85
- rspec-expectations (~> 3.12.0)
86
- rspec-mocks (~> 3.12.0)
87
- rspec-core (3.12.0)
88
- rspec-support (~> 3.12.0)
89
- rspec-expectations (3.12.0)
90
- diff-lcs (>= 1.2.0, < 2.0)
91
- rspec-support (~> 3.12.0)
92
- rspec-mocks (3.12.0)
93
- diff-lcs (>= 1.2.0, < 2.0)
94
- rspec-support (~> 3.12.0)
95
- rspec-support (3.12.0)
96
- rubocop (1.39.0)
97
- json (~> 2.3)
98
- parallel (~> 1.10)
99
- parser (>= 3.1.2.1)
100
- rainbow (>= 2.2.2, < 4.0)
101
- regexp_parser (>= 1.8, < 3.0)
102
- rexml (>= 3.2.5, < 4.0)
103
- rubocop-ast (>= 1.23.0, < 2.0)
104
- ruby-progressbar (~> 1.7)
105
- unicode-display_width (>= 1.4.0, < 3.0)
106
- rubocop-ast (1.23.0)
107
- parser (>= 3.1.1.0)
108
- ruby-debug-ide (0.7.3)
109
- rake (>= 0.8.1)
110
- ruby-progressbar (1.11.0)
111
- thor (1.2.1)
112
- tzinfo (2.0.5)
113
- concurrent-ruby (~> 1.0)
114
- unicode-display_width (2.3.0)
115
- zeitwerk (2.6.6)
116
-
117
- PLATFORMS
118
- arm64-darwin-21
119
- universal-darwin-22
120
- x86_64-darwin-21
121
- x86_64-linux
122
-
123
- DEPENDENCIES
124
- factory_bot_rails (~> 6.2.0)
125
- httparty
126
- rake (~> 13.0)
127
- rspec
128
- rubocop (~> 1.21)
129
- ruby-debug-ide
130
- unit_ruby_sdk!
131
-
132
- BUNDLED WITH
133
- 2.3.26