Commit 602184e
[CLN-2115] Armar SDK de transfers en Ruby (#18)
* feature(api): add support for v2 endpoint
* feature(entity): Add entity resource
* feature(entities): Add entities endpoints
* feature(entity): Add refresh method to entity
* feature(entities): Add readme docs for entity
* feature(client): Add post requests
* refactor(movements): Move existing accounts to movements namespace
* refactor(entity): Move entities to Transfers folder
* refactor(clients): Refactor Clients to have separate clients for Movements and Transfers
* refactor(balance): Move balance to Movements namespace
* refactor(institution): Move Institutions to Movements namespace
* refactor(links): Move links to Movements namespace
* refactor(movements): Move movements to Movements namespace
* refactor(transfer-accounts): Move TransferAccounts to Movements namespace
* refactor(fintoc): Restrutcture entire folder structure to have better navigability and more intuitive naming
* refactor(transfers-client): Update spec to mock api response rather than method response
* fix(movements-http-mocks): Move mocks to correct folder (and delete deprecated ones)
* fix(movements): Fix movements comparison
* feature(base-client): Add patch request method
* feature(accounts): Create transfers account resource
* feature(accounts): Add accounts methods to Transfers client
* refactor(client): Add comment to Fintoc::Client to make sure that the AI doesn't use it since it is expected to be deprecated
* refactor(entitities): Remove unnecessary entities array conversion
* feature(accounts): Add refresh method to accounts
* feature(accounts): Add update method for accounts
* refactor(client): Add comment indicating that Client is only kept for backward compatibility
* refactor(accounts): Configure money-rails gem instead of custom formatter
* refactor(resources): Prefer explicit refreshing of resource values
* feature(account-numbers): Add account numbers transfer resource
* feature(account-numbers): Add account numbers methods
* feature(account-number): Add refresh method to account numbers
* feature(account-numbers): Add update method to account numbers
* refactor(resources): Do not refresh using initialize as it returns a different object
* feature(transfers): Add transfers resources
* feature(jws): Add JWS private key to request args for use of transfers create and patch methods
* feature(transfers): Add transfers methods
* feature(transfers): Add refresh method to transfers
* feature(transfer): Add return_transfer method to transfer
* refactor(client/jws): Move jws condition to separate method
* feature(simulate): Implement simulate methods
* feature(account/simulate): Use simulate_receive_transfer as isntance method for Account
* feature(account-number/simulate): Use simulate_receive_transfer as isntance method for AccountNumber
* feature(simulate): Only allow simulating inbound transfers on test mode
* refactor(transfers-methods/spec): Better mocks for unit tests of methods
* feature(account-verifications): Add AccountVerification resource
* feature(account-verifications): Add account verification methods
* feature(account-verifications): add refresh methods to account verifications
* refactor(transfers): Remove unnecessary inclusions of Utils
* refactor(transfer/refresh-resources): Use ArgumentError for resfresh_from_* error on mismatching instances
* refactor(errors): Update errors url ref
* feature(errors): Update list of possible errors
* feature(docs): Update readme docs to include new methods and changes to the api use
* refactor(client): Use managers instead of methods to access all api methods as in Python SDK
* fix(readme): Fix typo
* refactor(client): Prefer having v1/v2 clients instead of movements/transfers/others for consistency with other SDKs
* fix(readme): Fix readme client
* feat: add webhook signature module
* feat: add webhook signature error
* feat: include webhook signature module to fintoc
* refactor(errors): Remove redundant to_s at Errors
Since it is implied by inheriting from StandardError
* refactor(v1/accounts): Move Headers to frozen constant
* fix(v1/link): Fix call to delete
* refactor(fintoc/version): Move version spec to better folder
* feature(spec): Increase spec coverage
* fix(transfers-manager): Fix mock of transfers return in spec
* fix(base-client): Invert visible part and hidden part of key
This also adds a spec for BaseClient
* feature(account/spec): Add missing spec for update_balance method of V1::Account
* feature(spec/link): Add missing spec for update_accounts of V1::Link
* feature(simplecov): Add simplecov gem
* feature(simplecov): Add simplecov config
* feature(ci/simplecov): Add coverage requirement to CI
* feature(version): Bump version to 1.0.0 and update changelog
---------
Co-authored-by: Danny Fuentes <dannyfuf@gmail.com>1 parent 22467cd commit 602184e
114 files changed
Lines changed: 6448 additions & 1202 deletions
File tree
- .github/workflows
- lib
- config/initializers
- fintoc
- resources
- v1
- client
- managers
- resources
- v2
- client
- managers
- resources
- tasks
- spec
- lib/fintoc
- resources/fintoc
- v1
- managers
- v2
- managers
- vcr
- Fintoc_Client
- _account
- _get_accounts
- _link
- Fintoc_V1_Account
- _get_movements
- _movement_with_since_argument
- _movements
- _update_balance
- _update_movements
- Fintoc_V1_Client/behaves_like_a_client_with_links_manager/_links
- _get
- _list
- Fintoc_V1_Link/_update_accounts
- Fintoc_V2_Client
- behaves_like_a_client_with_account_numbers_manager/_account_numbers
- _create
- _get
- _list
- _update
- behaves_like_a_client_with_account_verifications_manager/_account_verifications
- _create
- _get
- _list
- behaves_like_a_client_with_accounts_manager/_accounts
- _create
- _get
- _list
- _update
- behaves_like_a_client_with_entities_manager/_entities
- _get
- _list
- behaves_like_a_client_with_simulate_manager/_simulate/_receive_transfer
- behaves_like_a_client_with_transfers_manager/_transfers
- _create
- _get
- _list
- _return
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
9 | 40 | | |
10 | 41 | | |
11 | 42 | | |
| 43 | + | |
| 44 | + | |
12 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
11 | 28 | | |
12 | 29 | | |
13 | 30 | | |
| |||
27 | 44 | | |
28 | 45 | | |
29 | 46 | | |
| 47 | + | |
30 | 48 | | |
31 | 49 | | |
32 | 50 | | |
33 | 51 | | |
34 | 52 | | |
| 53 | + | |
| 54 | + | |
35 | 55 | | |
| 56 | + | |
36 | 57 | | |
37 | 58 | | |
| 59 | + | |
| 60 | + | |
38 | 61 | | |
39 | 62 | | |
40 | 63 | | |
41 | 64 | | |
42 | 65 | | |
43 | 66 | | |
44 | | - | |
45 | | - | |
46 | 67 | | |
47 | 68 | | |
48 | 69 | | |
| |||
60 | 81 | | |
61 | 82 | | |
62 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
63 | 89 | | |
64 | 90 | | |
65 | 91 | | |
66 | 92 | | |
67 | 93 | | |
68 | 94 | | |
69 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
70 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
71 | 125 | | |
72 | 126 | | |
73 | 127 | | |
74 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
75 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
76 | 136 | | |
77 | 137 | | |
78 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
79 | 161 | | |
80 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
81 | 166 | | |
| 167 | + | |
| 168 | + | |
82 | 169 | | |
83 | 170 | | |
84 | 171 | | |
| |||
125 | 212 | | |
126 | 213 | | |
127 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
128 | 225 | | |
| 226 | + | |
129 | 227 | | |
130 | 228 | | |
131 | 229 | | |
132 | 230 | | |
133 | 231 | | |
134 | 232 | | |
| 233 | + | |
135 | 234 | | |
136 | 235 | | |
137 | 236 | | |
138 | 237 | | |
139 | 238 | | |
140 | 239 | | |
| 240 | + | |
141 | 241 | | |
142 | 242 | | |
143 | 243 | | |
144 | 244 | | |
145 | 245 | | |
146 | 246 | | |
147 | 247 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 248 | | |
152 | 249 | | |
153 | 250 | | |
| |||
162 | 259 | | |
163 | 260 | | |
164 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
165 | 265 | | |
166 | 266 | | |
167 | 267 | | |
| |||
0 commit comments