espago 0.0.9 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +15 -3
  3. data/Gemfile +2 -0
  4. data/Gemfile.lock +263 -47
  5. data/Guardfile +1 -0
  6. data/README.md +116 -6
  7. data/app/helpers/espago/masterpass_helper.rb +13 -0
  8. data/app/helpers/espago/secure_web_page_helper.rb +5 -0
  9. data/app/views/espago_masterpass/_masterpass_button.html.haml +20 -0
  10. data/app/views/espago_masterpass/_masterpass_pairing_button.html.haml +11 -0
  11. data/app/views/espago_masterpass/_masterpass_precheckout_button.html.haml +21 -0
  12. data/app/views/espago_secure_web_page/_form.html.haml +26 -0
  13. data/espago.gemspec +16 -9
  14. data/lib/espago/api_connection/{post_clients.rb → api.rb} +1 -5
  15. data/lib/espago/api_connection/api_delete.rb +9 -0
  16. data/lib/espago/api_connection/api_get.rb +13 -0
  17. data/lib/espago/api_connection/api_post.rb +9 -0
  18. data/lib/espago/api_connection/api_put.rb +9 -0
  19. data/lib/espago/api_connection/charges_complete_post.rb +9 -0
  20. data/lib/espago/api_connection/charges_delete.rb +9 -0
  21. data/lib/espago/api_connection/charges_get.rb +9 -0
  22. data/lib/espago/api_connection/charges_post.rb +9 -0
  23. data/lib/espago/api_connection/{post_charges_refund.rb → charges_refund_post.rb} +1 -5
  24. data/lib/espago/api_connection/clients_authorize_post.rb +9 -0
  25. data/lib/espago/api_connection/clients_delete.rb +9 -0
  26. data/lib/espago/api_connection/clients_get.rb +9 -0
  27. data/lib/espago/api_connection/clients_invoices_get.rb +9 -0
  28. data/lib/espago/api_connection/clients_post.rb +9 -0
  29. data/lib/espago/api_connection/clients_put.rb +9 -0
  30. data/lib/espago/api_connection/clients_subscriptions_get.rb +9 -0
  31. data/lib/espago/api_connection/complete_post.rb +14 -0
  32. data/lib/espago/api_connection/dcc_decision_post.rb +9 -0
  33. data/lib/espago/api_connection/invoice_items_delete.rb +9 -0
  34. data/lib/espago/api_connection/invoice_items_get.rb +9 -0
  35. data/lib/espago/api_connection/invoice_items_post.rb +9 -0
  36. data/lib/espago/api_connection/invoices_get.rb +9 -0
  37. data/lib/espago/api_connection/line_items_get.rb +9 -0
  38. data/lib/espago/api_connection/masterpass_post.rb +9 -0
  39. data/lib/espago/api_connection/plans_delete.rb +9 -0
  40. data/lib/espago/api_connection/plans_get.rb +9 -0
  41. data/lib/espago/api_connection/plans_post.rb +9 -0
  42. data/lib/espago/api_connection/plans_put.rb +9 -0
  43. data/lib/espago/api_connection/refunds_post.rb +9 -0
  44. data/lib/espago/api_connection/secure_web_page_register_post.rb +9 -0
  45. data/lib/espago/api_connection/subscriptions_delete.rb +9 -0
  46. data/lib/espago/api_connection/subscriptions_get.rb +9 -0
  47. data/lib/espago/api_connection/subscriptions_post.rb +9 -0
  48. data/lib/espago/api_connection/tokens_get.rb +9 -0
  49. data/lib/espago/api_connection/{delete_charges.rb → tokens_post.rb} +3 -2
  50. data/lib/espago/api_connection/visacheckout_post.rb +9 -0
  51. data/lib/espago/api_connection.rb +20 -9
  52. data/lib/espago/back_request.rb +33 -0
  53. data/lib/espago/client.rb +23 -9
  54. data/lib/espago/engine.rb +5 -0
  55. data/lib/espago/masterpass.rb +52 -0
  56. data/lib/espago/router.rb +1 -1
  57. data/lib/espago/secure_web_page.rb +31 -0
  58. data/lib/espago/version.rb +1 -1
  59. data/lib/espago.rb +11 -3
  60. data/lib/generators/espago/install_generator.rb +20 -0
  61. data/lib/generators/espago/templates/README +10 -0
  62. data/lib/generators/espago/templates/espago.rb +6 -0
  63. data/spec/espago/api_connection_spec.rb +5 -4
  64. data/spec/espago/back_request_spec.rb +33 -0
  65. data/spec/espago/client_spec.rb +21 -8
  66. data/spec/espago/error_spec.rb +4 -3
  67. data/spec/espago/response_spec.rb +10 -10
  68. data/spec/espago/router_spec.rb +6 -7
  69. data/spec/features/apis_spec.rb +21 -0
  70. data/spec/features/charges_spec.rb +79 -0
  71. data/spec/features/charges_spec_with_params_spec.rb +89 -0
  72. data/spec/features/clients_spec.rb +100 -0
  73. data/spec/features/dcc_decision_spec.rb +20 -0
  74. data/spec/features/error_spec.rb +28 -0
  75. data/spec/features/invoice_items_spec.rb +37 -0
  76. data/spec/features/invoices_spec.rb +24 -0
  77. data/spec/features/line_items_spec.rb +17 -0
  78. data/spec/features/plans_spec.rb +61 -0
  79. data/spec/features/secure_web_page_register_spec.rb +23 -0
  80. data/spec/features/subscriptions_spec.rb +43 -0
  81. data/spec/features/tokens_spec.rb +39 -0
  82. data/spec/fixtures/cassettes/api_2.yml +68 -0
  83. data/spec/fixtures/cassettes/api_3.yml +68 -0
  84. data/spec/fixtures/cassettes/charges_complete.yml +48 -0
  85. data/spec/fixtures/cassettes/charges_complete_deprecation.yml +48 -0
  86. data/spec/fixtures/cassettes/charges_destroy.yml +46 -0
  87. data/spec/fixtures/cassettes/charges_get.yml +67 -0
  88. data/spec/fixtures/cassettes/charges_get_pay_mTOngouLTJWZ0w.yml +48 -0
  89. data/spec/fixtures/cassettes/charges_post.yml +50 -0
  90. data/spec/fixtures/cassettes/charges_refund.yml +50 -0
  91. data/spec/fixtures/cassettes/clients_authorize.yml +50 -0
  92. data/spec/fixtures/cassettes/clients_delete.yml +44 -0
  93. data/spec/fixtures/cassettes/clients_get.yml +48 -0
  94. data/spec/fixtures/cassettes/clients_get_cli_w0Se2smYwyQ0Uw.yml +48 -0
  95. data/spec/fixtures/cassettes/clients_invoices.yml +48 -0
  96. data/spec/fixtures/cassettes/clients_post.yml +50 -0
  97. data/spec/fixtures/cassettes/clients_put.yml +50 -0
  98. data/spec/fixtures/cassettes/clients_subscriptions.yml +48 -0
  99. data/spec/fixtures/cassettes/dcc_decision_post.yml +50 -0
  100. data/spec/fixtures/cassettes/error_400.yml +48 -0
  101. data/spec/fixtures/cassettes/error_401.yml +48 -0
  102. data/spec/fixtures/cassettes/error_500.yml +48 -0
  103. data/spec/fixtures/cassettes/invoice_items_delete_ii_WDzszvhTshe78Xd.yml +44 -0
  104. data/spec/fixtures/cassettes/invoice_items_get_ii_5LS-YR7S1QaJBl3.yml +49 -0
  105. data/spec/fixtures/cassettes/invoice_items_post_ii_5LS-YR7S1QaJBl3.yml +51 -0
  106. data/spec/fixtures/cassettes/invoices_get.yml +48 -0
  107. data/spec/fixtures/cassettes/invoices_get_in_tUCMhwlg2nkvAaL.yml +48 -0
  108. data/spec/fixtures/cassettes/line_items_get.yml +47 -0
  109. data/spec/fixtures/cassettes/plans_delete.yml +42 -0
  110. data/spec/fixtures/cassettes/plans_get.yml +46 -0
  111. data/spec/fixtures/cassettes/plans_get_pl_12345.yml +46 -0
  112. data/spec/fixtures/cassettes/plans_post.yml +50 -0
  113. data/spec/fixtures/cassettes/plans_put.yml +46 -0
  114. data/spec/fixtures/cassettes/secure_web_page_register_post.yml +56 -0
  115. data/spec/fixtures/cassettes/subscriptions_delete_sub_8yYuCBKdywr7e2.yml +44 -0
  116. data/spec/fixtures/cassettes/subscriptions_get.yml +46 -0
  117. data/spec/fixtures/cassettes/subscriptions_get_sub_8yYuCBKdywr7e2.yml +46 -0
  118. data/spec/fixtures/cassettes/subscriptions_post.yml +50 -0
  119. data/spec/fixtures/cassettes/tokens_get.yml +48 -0
  120. data/spec/fixtures/cassettes/tokens_post.yml +56 -0
  121. data/spec/spec_helper.rb +29 -1
  122. metadata +271 -42
  123. data/lib/espago/api_connection/delete_clients.rb +0 -13
  124. data/lib/espago/api_connection/get_charges.rb +0 -17
  125. data/lib/espago/api_connection/get_clients.rb +0 -17
  126. data/lib/espago/api_connection/get_tokens.rb +0 -13
  127. data/lib/espago/api_connection/post_charges.rb +0 -13
  128. data/lib/espago/api_connection/post_clients_authorize.rb +0 -13
  129. data/lib/espago/api_connection/post_complete.rb +0 -13
  130. data/lib/espago/api_connection/post_tokens.rb +0 -14
  131. data/lib/espago/api_connection/put_clients.rb +0 -13
metadata CHANGED
@@ -1,142 +1,228 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: espago
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotrek
8
8
  - Szymon Fiedler
9
- autorequire:
9
+ - Waclaw Luczak
10
+ - faramund
11
+ autorequire:
10
12
  bindir: bin
11
13
  cert_chain: []
12
- date: 2013-09-21 00:00:00.000000000 Z
14
+ date: 2022-06-23 00:00:00.000000000 Z
13
15
  dependencies:
14
16
  - !ruby/object:Gem::Dependency
15
17
  name: faraday
16
18
  requirement: !ruby/object:Gem::Requirement
17
19
  requirements:
18
- - - '>='
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 2.0.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: json
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 2.3.1
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 2.3.1
44
+ - !ruby/object:Gem::Dependency
45
+ name: facets
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
19
49
  - !ruby/object:Gem::Version
20
50
  version: '0'
21
51
  type: :runtime
22
52
  prerelease: false
23
53
  version_requirements: !ruby/object:Gem::Requirement
24
54
  requirements:
25
- - - '>='
55
+ - - ">="
26
56
  - !ruby/object:Gem::Version
27
57
  version: '0'
28
58
  - !ruby/object:Gem::Dependency
29
- name: facets
59
+ name: rails
30
60
  requirement: !ruby/object:Gem::Requirement
31
61
  requirements:
32
- - - '>='
62
+ - - ">="
33
63
  - !ruby/object:Gem::Version
34
64
  version: '0'
35
65
  type: :runtime
36
66
  prerelease: false
37
67
  version_requirements: !ruby/object:Gem::Requirement
38
68
  requirements:
39
- - - '>='
69
+ - - ">="
40
70
  - !ruby/object:Gem::Version
41
71
  version: '0'
42
72
  - !ruby/object:Gem::Dependency
43
73
  name: rspec
44
74
  requirement: !ruby/object:Gem::Requirement
45
75
  requirements:
46
- - - '>='
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: 3.11.0
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: 3.11.0
86
+ - !ruby/object:Gem::Dependency
87
+ name: rspec-its
88
+ requirement: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ type: :development
94
+ prerelease: false
95
+ version_requirements: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ - !ruby/object:Gem::Dependency
101
+ name: byebug
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
47
105
  - !ruby/object:Gem::Version
48
106
  version: '0'
49
107
  type: :development
50
108
  prerelease: false
51
109
  version_requirements: !ruby/object:Gem::Requirement
52
110
  requirements:
53
- - - '>='
111
+ - - ">="
54
112
  - !ruby/object:Gem::Version
55
113
  version: '0'
56
114
  - !ruby/object:Gem::Dependency
57
115
  name: pry
58
116
  requirement: !ruby/object:Gem::Requirement
59
117
  requirements:
60
- - - '>='
118
+ - - ">="
61
119
  - !ruby/object:Gem::Version
62
120
  version: '0'
63
121
  type: :development
64
122
  prerelease: false
65
123
  version_requirements: !ruby/object:Gem::Requirement
66
124
  requirements:
67
- - - '>='
125
+ - - ">="
68
126
  - !ruby/object:Gem::Version
69
127
  version: '0'
70
128
  - !ruby/object:Gem::Dependency
71
129
  name: guard-rspec
72
130
  requirement: !ruby/object:Gem::Requirement
73
131
  requirements:
74
- - - '>='
132
+ - - ">="
75
133
  - !ruby/object:Gem::Version
76
134
  version: '0'
77
135
  type: :development
78
136
  prerelease: false
79
137
  version_requirements: !ruby/object:Gem::Requirement
80
138
  requirements:
81
- - - '>='
139
+ - - ">="
82
140
  - !ruby/object:Gem::Version
83
141
  version: '0'
84
142
  - !ruby/object:Gem::Dependency
85
143
  name: simplecov
86
144
  requirement: !ruby/object:Gem::Requirement
87
145
  requirements:
88
- - - '>='
146
+ - - ">="
89
147
  - !ruby/object:Gem::Version
90
148
  version: '0'
91
149
  type: :development
92
150
  prerelease: false
93
151
  version_requirements: !ruby/object:Gem::Requirement
94
152
  requirements:
95
- - - '>='
153
+ - - ">="
96
154
  - !ruby/object:Gem::Version
97
155
  version: '0'
98
156
  - !ruby/object:Gem::Dependency
99
157
  name: fuubar
100
158
  requirement: !ruby/object:Gem::Requirement
101
159
  requirements:
102
- - - '>='
160
+ - - ">="
103
161
  - !ruby/object:Gem::Version
104
162
  version: '0'
105
163
  type: :development
106
164
  prerelease: false
107
165
  version_requirements: !ruby/object:Gem::Requirement
108
166
  requirements:
109
- - - '>='
167
+ - - ">="
110
168
  - !ruby/object:Gem::Version
111
169
  version: '0'
112
170
  - !ruby/object:Gem::Dependency
113
171
  name: rake
114
172
  requirement: !ruby/object:Gem::Requirement
115
173
  requirements:
116
- - - '>='
174
+ - - ">="
117
175
  - !ruby/object:Gem::Version
118
176
  version: '0'
119
177
  type: :development
120
178
  prerelease: false
121
179
  version_requirements: !ruby/object:Gem::Requirement
122
180
  requirements:
123
- - - '>='
181
+ - - ">="
124
182
  - !ruby/object:Gem::Version
125
183
  version: '0'
126
184
  - !ruby/object:Gem::Dependency
127
185
  name: rb-fsevent
128
186
  requirement: !ruby/object:Gem::Requirement
129
187
  requirements:
130
- - - ~>
188
+ - - "~>"
131
189
  - !ruby/object:Gem::Version
132
190
  version: 0.9.1
133
191
  type: :development
134
192
  prerelease: false
135
193
  version_requirements: !ruby/object:Gem::Requirement
136
194
  requirements:
137
- - - ~>
195
+ - - "~>"
138
196
  - !ruby/object:Gem::Version
139
197
  version: 0.9.1
198
+ - !ruby/object:Gem::Dependency
199
+ name: webmock
200
+ requirement: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ version: '0'
205
+ type: :development
206
+ prerelease: false
207
+ version_requirements: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ">="
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
212
+ - !ruby/object:Gem::Dependency
213
+ name: vcr
214
+ requirement: !ruby/object:Gem::Requirement
215
+ requirements:
216
+ - - ">="
217
+ - !ruby/object:Gem::Version
218
+ version: '0'
219
+ type: :development
220
+ prerelease: false
221
+ version_requirements: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - ">="
224
+ - !ruby/object:Gem::Version
225
+ version: '0'
140
226
  description: Espago api wrapper
141
227
  email:
142
228
  - developers@espago.com
@@ -144,72 +230,215 @@ executables: []
144
230
  extensions: []
145
231
  extra_rdoc_files: []
146
232
  files:
147
- - .gitignore
148
- - .travis.yml
233
+ - ".gitignore"
234
+ - ".travis.yml"
149
235
  - Gemfile
150
236
  - Gemfile.lock
151
237
  - Guardfile
152
238
  - LICENSE.txt
153
239
  - README.md
154
240
  - Rakefile
241
+ - app/helpers/espago/masterpass_helper.rb
242
+ - app/helpers/espago/secure_web_page_helper.rb
243
+ - app/views/espago_masterpass/_masterpass_button.html.haml
244
+ - app/views/espago_masterpass/_masterpass_pairing_button.html.haml
245
+ - app/views/espago_masterpass/_masterpass_precheckout_button.html.haml
246
+ - app/views/espago_secure_web_page/_form.html.haml
155
247
  - espago.gemspec
156
248
  - lib/espago.rb
157
249
  - lib/espago/api_connection.rb
158
- - lib/espago/api_connection/delete_charges.rb
159
- - lib/espago/api_connection/delete_clients.rb
160
- - lib/espago/api_connection/get_charges.rb
161
- - lib/espago/api_connection/get_clients.rb
162
- - lib/espago/api_connection/get_tokens.rb
163
- - lib/espago/api_connection/post_charges.rb
164
- - lib/espago/api_connection/post_charges_refund.rb
165
- - lib/espago/api_connection/post_clients.rb
166
- - lib/espago/api_connection/post_clients_authorize.rb
167
- - lib/espago/api_connection/post_complete.rb
168
- - lib/espago/api_connection/post_tokens.rb
169
- - lib/espago/api_connection/put_clients.rb
250
+ - lib/espago/api_connection/api.rb
251
+ - lib/espago/api_connection/api_delete.rb
252
+ - lib/espago/api_connection/api_get.rb
253
+ - lib/espago/api_connection/api_post.rb
254
+ - lib/espago/api_connection/api_put.rb
255
+ - lib/espago/api_connection/charges_complete_post.rb
256
+ - lib/espago/api_connection/charges_delete.rb
257
+ - lib/espago/api_connection/charges_get.rb
258
+ - lib/espago/api_connection/charges_post.rb
259
+ - lib/espago/api_connection/charges_refund_post.rb
260
+ - lib/espago/api_connection/clients_authorize_post.rb
261
+ - lib/espago/api_connection/clients_delete.rb
262
+ - lib/espago/api_connection/clients_get.rb
263
+ - lib/espago/api_connection/clients_invoices_get.rb
264
+ - lib/espago/api_connection/clients_post.rb
265
+ - lib/espago/api_connection/clients_put.rb
266
+ - lib/espago/api_connection/clients_subscriptions_get.rb
267
+ - lib/espago/api_connection/complete_post.rb
268
+ - lib/espago/api_connection/dcc_decision_post.rb
269
+ - lib/espago/api_connection/invoice_items_delete.rb
270
+ - lib/espago/api_connection/invoice_items_get.rb
271
+ - lib/espago/api_connection/invoice_items_post.rb
272
+ - lib/espago/api_connection/invoices_get.rb
273
+ - lib/espago/api_connection/line_items_get.rb
274
+ - lib/espago/api_connection/masterpass_post.rb
275
+ - lib/espago/api_connection/plans_delete.rb
276
+ - lib/espago/api_connection/plans_get.rb
277
+ - lib/espago/api_connection/plans_post.rb
278
+ - lib/espago/api_connection/plans_put.rb
279
+ - lib/espago/api_connection/refunds_post.rb
280
+ - lib/espago/api_connection/secure_web_page_register_post.rb
281
+ - lib/espago/api_connection/subscriptions_delete.rb
282
+ - lib/espago/api_connection/subscriptions_get.rb
283
+ - lib/espago/api_connection/subscriptions_post.rb
284
+ - lib/espago/api_connection/tokens_get.rb
285
+ - lib/espago/api_connection/tokens_post.rb
286
+ - lib/espago/api_connection/visacheckout_post.rb
287
+ - lib/espago/back_request.rb
170
288
  - lib/espago/client.rb
289
+ - lib/espago/engine.rb
171
290
  - lib/espago/error.rb
172
291
  - lib/espago/error/api_error.rb
173
292
  - lib/espago/error/authentication_error.rb
174
293
  - lib/espago/error/invalid_request_error.rb
294
+ - lib/espago/masterpass.rb
175
295
  - lib/espago/response.rb
176
296
  - lib/espago/router.rb
297
+ - lib/espago/secure_web_page.rb
177
298
  - lib/espago/version.rb
299
+ - lib/generators/espago/install_generator.rb
300
+ - lib/generators/espago/templates/README
301
+ - lib/generators/espago/templates/espago.rb
178
302
  - spec/espago/api_connection_spec.rb
303
+ - spec/espago/back_request_spec.rb
179
304
  - spec/espago/client_spec.rb
180
305
  - spec/espago/error_spec.rb
181
306
  - spec/espago/response_spec.rb
182
307
  - spec/espago/router_spec.rb
308
+ - spec/features/apis_spec.rb
309
+ - spec/features/charges_spec.rb
310
+ - spec/features/charges_spec_with_params_spec.rb
311
+ - spec/features/clients_spec.rb
312
+ - spec/features/dcc_decision_spec.rb
313
+ - spec/features/error_spec.rb
314
+ - spec/features/invoice_items_spec.rb
315
+ - spec/features/invoices_spec.rb
316
+ - spec/features/line_items_spec.rb
317
+ - spec/features/plans_spec.rb
318
+ - spec/features/secure_web_page_register_spec.rb
319
+ - spec/features/subscriptions_spec.rb
320
+ - spec/features/tokens_spec.rb
321
+ - spec/fixtures/cassettes/api_2.yml
322
+ - spec/fixtures/cassettes/api_3.yml
323
+ - spec/fixtures/cassettes/charges_complete.yml
324
+ - spec/fixtures/cassettes/charges_complete_deprecation.yml
325
+ - spec/fixtures/cassettes/charges_destroy.yml
326
+ - spec/fixtures/cassettes/charges_get.yml
327
+ - spec/fixtures/cassettes/charges_get_pay_mTOngouLTJWZ0w.yml
328
+ - spec/fixtures/cassettes/charges_post.yml
329
+ - spec/fixtures/cassettes/charges_refund.yml
330
+ - spec/fixtures/cassettes/clients_authorize.yml
331
+ - spec/fixtures/cassettes/clients_delete.yml
332
+ - spec/fixtures/cassettes/clients_get.yml
333
+ - spec/fixtures/cassettes/clients_get_cli_w0Se2smYwyQ0Uw.yml
334
+ - spec/fixtures/cassettes/clients_invoices.yml
335
+ - spec/fixtures/cassettes/clients_post.yml
336
+ - spec/fixtures/cassettes/clients_put.yml
337
+ - spec/fixtures/cassettes/clients_subscriptions.yml
338
+ - spec/fixtures/cassettes/dcc_decision_post.yml
339
+ - spec/fixtures/cassettes/error_400.yml
340
+ - spec/fixtures/cassettes/error_401.yml
341
+ - spec/fixtures/cassettes/error_500.yml
342
+ - spec/fixtures/cassettes/invoice_items_delete_ii_WDzszvhTshe78Xd.yml
343
+ - spec/fixtures/cassettes/invoice_items_get_ii_5LS-YR7S1QaJBl3.yml
344
+ - spec/fixtures/cassettes/invoice_items_post_ii_5LS-YR7S1QaJBl3.yml
345
+ - spec/fixtures/cassettes/invoices_get.yml
346
+ - spec/fixtures/cassettes/invoices_get_in_tUCMhwlg2nkvAaL.yml
347
+ - spec/fixtures/cassettes/line_items_get.yml
348
+ - spec/fixtures/cassettes/plans_delete.yml
349
+ - spec/fixtures/cassettes/plans_get.yml
350
+ - spec/fixtures/cassettes/plans_get_pl_12345.yml
351
+ - spec/fixtures/cassettes/plans_post.yml
352
+ - spec/fixtures/cassettes/plans_put.yml
353
+ - spec/fixtures/cassettes/secure_web_page_register_post.yml
354
+ - spec/fixtures/cassettes/subscriptions_delete_sub_8yYuCBKdywr7e2.yml
355
+ - spec/fixtures/cassettes/subscriptions_get.yml
356
+ - spec/fixtures/cassettes/subscriptions_get_sub_8yYuCBKdywr7e2.yml
357
+ - spec/fixtures/cassettes/subscriptions_post.yml
358
+ - spec/fixtures/cassettes/tokens_get.yml
359
+ - spec/fixtures/cassettes/tokens_post.yml
183
360
  - spec/helpers/fake_response.rb
184
361
  - spec/spec_helper.rb
185
362
  homepage: ''
186
363
  licenses: []
187
364
  metadata: {}
188
- post_install_message:
365
+ post_install_message:
189
366
  rdoc_options: []
190
367
  require_paths:
191
368
  - lib
192
369
  required_ruby_version: !ruby/object:Gem::Requirement
193
370
  requirements:
194
- - - '>='
371
+ - - ">="
195
372
  - !ruby/object:Gem::Version
196
373
  version: '0'
197
374
  required_rubygems_version: !ruby/object:Gem::Requirement
198
375
  requirements:
199
- - - '>='
376
+ - - ">="
200
377
  - !ruby/object:Gem::Version
201
378
  version: '0'
202
379
  requirements: []
203
- rubyforge_project:
204
- rubygems_version: 2.0.3
205
- signing_key:
380
+ rubygems_version: 3.3.3
381
+ signing_key:
206
382
  specification_version: 4
207
383
  summary: Espago api wrapper
208
384
  test_files:
209
385
  - spec/espago/api_connection_spec.rb
386
+ - spec/espago/back_request_spec.rb
210
387
  - spec/espago/client_spec.rb
211
388
  - spec/espago/error_spec.rb
212
389
  - spec/espago/response_spec.rb
213
390
  - spec/espago/router_spec.rb
391
+ - spec/features/apis_spec.rb
392
+ - spec/features/charges_spec.rb
393
+ - spec/features/charges_spec_with_params_spec.rb
394
+ - spec/features/clients_spec.rb
395
+ - spec/features/dcc_decision_spec.rb
396
+ - spec/features/error_spec.rb
397
+ - spec/features/invoice_items_spec.rb
398
+ - spec/features/invoices_spec.rb
399
+ - spec/features/line_items_spec.rb
400
+ - spec/features/plans_spec.rb
401
+ - spec/features/secure_web_page_register_spec.rb
402
+ - spec/features/subscriptions_spec.rb
403
+ - spec/features/tokens_spec.rb
404
+ - spec/fixtures/cassettes/api_2.yml
405
+ - spec/fixtures/cassettes/api_3.yml
406
+ - spec/fixtures/cassettes/charges_complete.yml
407
+ - spec/fixtures/cassettes/charges_complete_deprecation.yml
408
+ - spec/fixtures/cassettes/charges_destroy.yml
409
+ - spec/fixtures/cassettes/charges_get.yml
410
+ - spec/fixtures/cassettes/charges_get_pay_mTOngouLTJWZ0w.yml
411
+ - spec/fixtures/cassettes/charges_post.yml
412
+ - spec/fixtures/cassettes/charges_refund.yml
413
+ - spec/fixtures/cassettes/clients_authorize.yml
414
+ - spec/fixtures/cassettes/clients_delete.yml
415
+ - spec/fixtures/cassettes/clients_get.yml
416
+ - spec/fixtures/cassettes/clients_get_cli_w0Se2smYwyQ0Uw.yml
417
+ - spec/fixtures/cassettes/clients_invoices.yml
418
+ - spec/fixtures/cassettes/clients_post.yml
419
+ - spec/fixtures/cassettes/clients_put.yml
420
+ - spec/fixtures/cassettes/clients_subscriptions.yml
421
+ - spec/fixtures/cassettes/dcc_decision_post.yml
422
+ - spec/fixtures/cassettes/error_400.yml
423
+ - spec/fixtures/cassettes/error_401.yml
424
+ - spec/fixtures/cassettes/error_500.yml
425
+ - spec/fixtures/cassettes/invoice_items_delete_ii_WDzszvhTshe78Xd.yml
426
+ - spec/fixtures/cassettes/invoice_items_get_ii_5LS-YR7S1QaJBl3.yml
427
+ - spec/fixtures/cassettes/invoice_items_post_ii_5LS-YR7S1QaJBl3.yml
428
+ - spec/fixtures/cassettes/invoices_get.yml
429
+ - spec/fixtures/cassettes/invoices_get_in_tUCMhwlg2nkvAaL.yml
430
+ - spec/fixtures/cassettes/line_items_get.yml
431
+ - spec/fixtures/cassettes/plans_delete.yml
432
+ - spec/fixtures/cassettes/plans_get.yml
433
+ - spec/fixtures/cassettes/plans_get_pl_12345.yml
434
+ - spec/fixtures/cassettes/plans_post.yml
435
+ - spec/fixtures/cassettes/plans_put.yml
436
+ - spec/fixtures/cassettes/secure_web_page_register_post.yml
437
+ - spec/fixtures/cassettes/subscriptions_delete_sub_8yYuCBKdywr7e2.yml
438
+ - spec/fixtures/cassettes/subscriptions_get.yml
439
+ - spec/fixtures/cassettes/subscriptions_get_sub_8yYuCBKdywr7e2.yml
440
+ - spec/fixtures/cassettes/subscriptions_post.yml
441
+ - spec/fixtures/cassettes/tokens_get.yml
442
+ - spec/fixtures/cassettes/tokens_post.yml
214
443
  - spec/helpers/fake_response.rb
215
444
  - spec/spec_helper.rb
@@ -1,13 +0,0 @@
1
- module Espago
2
- class ApiConnection
3
- class DeleteClients
4
- def initialize(connection)
5
- @connection = connection
6
- end
7
-
8
- def request(params = {})
9
- @connection.delete "clients/#{params[:client_id]}"
10
- end
11
- end
12
- end
13
- end
@@ -1,17 +0,0 @@
1
- module Espago
2
- class ApiConnection
3
- class GetCharges
4
- def initialize(connection)
5
- @connection = connection
6
- end
7
-
8
- def request(params = {})
9
- if params[:charge_id]
10
- @connection.get "charges/#{params[:charge_id]}"
11
- else
12
- @connection.get "charges", params
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- module Espago
2
- class ApiConnection
3
- class GetClients
4
- def initialize(connection)
5
- @connection = connection
6
- end
7
-
8
- def request(params = {})
9
- if params[:client_id]
10
- @connection.get "clients/#{params[:client_id]}"
11
- else
12
- @connection.get "clients", params
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,13 +0,0 @@
1
- module Espago
2
- class ApiConnection
3
- class GetTokens
4
- def initialize(connection)
5
- @connection = connection
6
- end
7
-
8
- def request(params = {})
9
- @connection.get "tokens/#{params[:token_id]}"
10
- end
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- module Espago
2
- class ApiConnection
3
- class PostCharges
4
- def initialize(connection)
5
- @connection = connection
6
- end
7
-
8
- def request(params = {})
9
- @connection.post "charges", params
10
- end
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- module Espago
2
- class ApiConnection
3
- class PostClientsAuthorize
4
- def initialize(connection)
5
- @connection = connection
6
- end
7
-
8
- def request(params = {})
9
- @connection.post "clients/#{params[:client_id]}/authorize"
10
- end
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- module Espago
2
- class ApiConnection
3
- class PostComplete
4
- def initialize(connection)
5
- @connection = connection
6
- end
7
-
8
- def request(params = {})
9
- @connection.post "charges/#{params[:charge_id]}/complete"
10
- end
11
- end
12
- end
13
- end
@@ -1,14 +0,0 @@
1
- module Espago
2
- class ApiConnection
3
- class PostTokens
4
- def initialize(connection)
5
- @connection = connection
6
- @connection.basic_auth(Espago.public_key, '')
7
- end
8
-
9
- def request(params = {})
10
- @connection.post "tokens", params
11
- end
12
- end
13
- end
14
- end
@@ -1,13 +0,0 @@
1
- module Espago
2
- class ApiConnection
3
- class PutClients
4
- def initialize(connection)
5
- @connection = connection
6
- end
7
-
8
- def request(params = {})
9
- @connection.put "clients/#{params[:client_id]}", params
10
- end
11
- end
12
- end
13
- end