gocardless-pro 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +2 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +22 -0
- data/README.md +132 -0
- data/circle.yml +18 -0
- data/demo.rb +10 -0
- data/gocardless-pro.gemspec +27 -0
- data/lib/gocardless-pro.rb +243 -0
- data/lib/gocardless-pro/api_service.rb +57 -0
- data/lib/gocardless-pro/error.rb +42 -0
- data/lib/gocardless-pro/error/gocardless_error.rb +5 -0
- data/lib/gocardless-pro/error/invalid_api_usage_error.rb +5 -0
- data/lib/gocardless-pro/error/invalid_state_error.rb +5 -0
- data/lib/gocardless-pro/error/validation_error.rb +5 -0
- data/lib/gocardless-pro/list_response.rb +34 -0
- data/lib/gocardless-pro/paginator.rb +37 -0
- data/lib/gocardless-pro/request.rb +69 -0
- data/lib/gocardless-pro/resources/api_key.rb +62 -0
- data/lib/gocardless-pro/resources/creditor.rb +83 -0
- data/lib/gocardless-pro/resources/creditor_bank_account.rb +78 -0
- data/lib/gocardless-pro/resources/customer.rb +72 -0
- data/lib/gocardless-pro/resources/customer_bank_account.rb +80 -0
- data/lib/gocardless-pro/resources/event.rb +75 -0
- data/lib/gocardless-pro/resources/helper.rb +29 -0
- data/lib/gocardless-pro/resources/mandate.rb +70 -0
- data/lib/gocardless-pro/resources/payment.rb +86 -0
- data/lib/gocardless-pro/resources/payout.rb +66 -0
- data/lib/gocardless-pro/resources/publishable_api_key.rb +51 -0
- data/lib/gocardless-pro/resources/redirect_flow.rb +104 -0
- data/lib/gocardless-pro/resources/refund.rb +70 -0
- data/lib/gocardless-pro/resources/role.rb +101 -0
- data/lib/gocardless-pro/resources/subscription.rb +152 -0
- data/lib/gocardless-pro/resources/user.rb +60 -0
- data/lib/gocardless-pro/response.rb +77 -0
- data/lib/gocardless-pro/services/api_key_service.rb +130 -0
- data/lib/gocardless-pro/services/base_service.rb +29 -0
- data/lib/gocardless-pro/services/creditor_bank_account_service.rb +122 -0
- data/lib/gocardless-pro/services/creditor_service.rb +112 -0
- data/lib/gocardless-pro/services/customer_bank_account_service.rb +153 -0
- data/lib/gocardless-pro/services/customer_service.rb +112 -0
- data/lib/gocardless-pro/services/event_service.rb +80 -0
- data/lib/gocardless-pro/services/helper_service.rb +97 -0
- data/lib/gocardless-pro/services/mandate_service.rb +170 -0
- data/lib/gocardless-pro/services/payment_service.rb +164 -0
- data/lib/gocardless-pro/services/payout_service.rb +80 -0
- data/lib/gocardless-pro/services/publishable_api_key_service.rb +130 -0
- data/lib/gocardless-pro/services/redirect_flow_service.rb +96 -0
- data/lib/gocardless-pro/services/refund_service.rb +126 -0
- data/lib/gocardless-pro/services/role_service.rb +127 -0
- data/lib/gocardless-pro/services/subscription_service.rb +133 -0
- data/lib/gocardless-pro/services/user_service.rb +148 -0
- data/lib/gocardless-pro/version.rb +8 -0
- data/spec/api_service_spec.rb +69 -0
- data/spec/client_spec.rb +29 -0
- data/spec/error_spec.rb +44 -0
- data/spec/resources/api_key_spec.rb +85 -0
- data/spec/resources/creditor_bank_account_spec.rb +109 -0
- data/spec/resources/creditor_spec.rb +125 -0
- data/spec/resources/customer_bank_account_spec.rb +109 -0
- data/spec/resources/customer_spec.rb +127 -0
- data/spec/resources/event_spec.rb +113 -0
- data/spec/resources/helper_spec.rb +23 -0
- data/spec/resources/mandate_spec.rb +97 -0
- data/spec/resources/payment_spec.rb +129 -0
- data/spec/resources/payout_spec.rb +89 -0
- data/spec/resources/publishable_api_key_spec.rb +63 -0
- data/spec/resources/redirect_flow_spec.rb +97 -0
- data/spec/resources/refund_spec.rb +77 -0
- data/spec/resources/role_spec.rb +63 -0
- data/spec/resources/subscription_spec.rb +157 -0
- data/spec/resources/user_spec.rb +85 -0
- data/spec/response_spec.rb +79 -0
- data/spec/services/api_key_service_spec.rb +362 -0
- data/spec/services/creditor_bank_account_service_spec.rb +365 -0
- data/spec/services/creditor_service_spec.rb +339 -0
- data/spec/services/customer_bank_account_service_spec.rb +404 -0
- data/spec/services/customer_service_spec.rb +365 -0
- data/spec/services/event_service_spec.rb +172 -0
- data/spec/services/helper_service_spec.rb +123 -0
- data/spec/services/mandate_service_spec.rb +449 -0
- data/spec/services/payment_service_spec.rb +497 -0
- data/spec/services/payout_service_spec.rb +172 -0
- data/spec/services/publishable_api_key_service_spec.rb +336 -0
- data/spec/services/redirect_flow_service_spec.rb +208 -0
- data/spec/services/refund_service_spec.rb +279 -0
- data/spec/services/role_service_spec.rb +336 -0
- data/spec/services/subscription_service_spec.rb +488 -0
- data/spec/services/user_service_spec.rb +433 -0
- data/spec/spec_helper.rb +91 -0
- metadata +255 -0
metadata
ADDED
@@ -0,0 +1,255 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gocardless-pro
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- GoCardless
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: webmock
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.18'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.18'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.30.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.30.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: yard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.8.7.6
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.8.7.6
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: faraday
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.8.9
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.8.9
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: activesupport
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4.1'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '4.1'
|
97
|
+
description:
|
98
|
+
email:
|
99
|
+
- engineering@gocardless.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- .rspec
|
105
|
+
- Gemfile
|
106
|
+
- LICENSE.txt
|
107
|
+
- README.md
|
108
|
+
- circle.yml
|
109
|
+
- demo.rb
|
110
|
+
- gocardless-pro.gemspec
|
111
|
+
- lib/gocardless-pro.rb
|
112
|
+
- lib/gocardless-pro/api_service.rb
|
113
|
+
- lib/gocardless-pro/error.rb
|
114
|
+
- lib/gocardless-pro/error/gocardless_error.rb
|
115
|
+
- lib/gocardless-pro/error/invalid_api_usage_error.rb
|
116
|
+
- lib/gocardless-pro/error/invalid_state_error.rb
|
117
|
+
- lib/gocardless-pro/error/validation_error.rb
|
118
|
+
- lib/gocardless-pro/list_response.rb
|
119
|
+
- lib/gocardless-pro/paginator.rb
|
120
|
+
- lib/gocardless-pro/request.rb
|
121
|
+
- lib/gocardless-pro/resources/api_key.rb
|
122
|
+
- lib/gocardless-pro/resources/creditor.rb
|
123
|
+
- lib/gocardless-pro/resources/creditor_bank_account.rb
|
124
|
+
- lib/gocardless-pro/resources/customer.rb
|
125
|
+
- lib/gocardless-pro/resources/customer_bank_account.rb
|
126
|
+
- lib/gocardless-pro/resources/event.rb
|
127
|
+
- lib/gocardless-pro/resources/helper.rb
|
128
|
+
- lib/gocardless-pro/resources/mandate.rb
|
129
|
+
- lib/gocardless-pro/resources/payment.rb
|
130
|
+
- lib/gocardless-pro/resources/payout.rb
|
131
|
+
- lib/gocardless-pro/resources/publishable_api_key.rb
|
132
|
+
- lib/gocardless-pro/resources/redirect_flow.rb
|
133
|
+
- lib/gocardless-pro/resources/refund.rb
|
134
|
+
- lib/gocardless-pro/resources/role.rb
|
135
|
+
- lib/gocardless-pro/resources/subscription.rb
|
136
|
+
- lib/gocardless-pro/resources/user.rb
|
137
|
+
- lib/gocardless-pro/response.rb
|
138
|
+
- lib/gocardless-pro/services/api_key_service.rb
|
139
|
+
- lib/gocardless-pro/services/base_service.rb
|
140
|
+
- lib/gocardless-pro/services/creditor_bank_account_service.rb
|
141
|
+
- lib/gocardless-pro/services/creditor_service.rb
|
142
|
+
- lib/gocardless-pro/services/customer_bank_account_service.rb
|
143
|
+
- lib/gocardless-pro/services/customer_service.rb
|
144
|
+
- lib/gocardless-pro/services/event_service.rb
|
145
|
+
- lib/gocardless-pro/services/helper_service.rb
|
146
|
+
- lib/gocardless-pro/services/mandate_service.rb
|
147
|
+
- lib/gocardless-pro/services/payment_service.rb
|
148
|
+
- lib/gocardless-pro/services/payout_service.rb
|
149
|
+
- lib/gocardless-pro/services/publishable_api_key_service.rb
|
150
|
+
- lib/gocardless-pro/services/redirect_flow_service.rb
|
151
|
+
- lib/gocardless-pro/services/refund_service.rb
|
152
|
+
- lib/gocardless-pro/services/role_service.rb
|
153
|
+
- lib/gocardless-pro/services/subscription_service.rb
|
154
|
+
- lib/gocardless-pro/services/user_service.rb
|
155
|
+
- lib/gocardless-pro/version.rb
|
156
|
+
- spec/api_service_spec.rb
|
157
|
+
- spec/client_spec.rb
|
158
|
+
- spec/error_spec.rb
|
159
|
+
- spec/resources/api_key_spec.rb
|
160
|
+
- spec/resources/creditor_bank_account_spec.rb
|
161
|
+
- spec/resources/creditor_spec.rb
|
162
|
+
- spec/resources/customer_bank_account_spec.rb
|
163
|
+
- spec/resources/customer_spec.rb
|
164
|
+
- spec/resources/event_spec.rb
|
165
|
+
- spec/resources/helper_spec.rb
|
166
|
+
- spec/resources/mandate_spec.rb
|
167
|
+
- spec/resources/payment_spec.rb
|
168
|
+
- spec/resources/payout_spec.rb
|
169
|
+
- spec/resources/publishable_api_key_spec.rb
|
170
|
+
- spec/resources/redirect_flow_spec.rb
|
171
|
+
- spec/resources/refund_spec.rb
|
172
|
+
- spec/resources/role_spec.rb
|
173
|
+
- spec/resources/subscription_spec.rb
|
174
|
+
- spec/resources/user_spec.rb
|
175
|
+
- spec/response_spec.rb
|
176
|
+
- spec/services/api_key_service_spec.rb
|
177
|
+
- spec/services/creditor_bank_account_service_spec.rb
|
178
|
+
- spec/services/creditor_service_spec.rb
|
179
|
+
- spec/services/customer_bank_account_service_spec.rb
|
180
|
+
- spec/services/customer_service_spec.rb
|
181
|
+
- spec/services/event_service_spec.rb
|
182
|
+
- spec/services/helper_service_spec.rb
|
183
|
+
- spec/services/mandate_service_spec.rb
|
184
|
+
- spec/services/payment_service_spec.rb
|
185
|
+
- spec/services/payout_service_spec.rb
|
186
|
+
- spec/services/publishable_api_key_service_spec.rb
|
187
|
+
- spec/services/redirect_flow_service_spec.rb
|
188
|
+
- spec/services/refund_service_spec.rb
|
189
|
+
- spec/services/role_service_spec.rb
|
190
|
+
- spec/services/subscription_service_spec.rb
|
191
|
+
- spec/services/user_service_spec.rb
|
192
|
+
- spec/spec_helper.rb
|
193
|
+
homepage: https://developer.gocardless.com/pro
|
194
|
+
licenses:
|
195
|
+
- MIT
|
196
|
+
metadata: {}
|
197
|
+
post_install_message:
|
198
|
+
rdoc_options: []
|
199
|
+
require_paths:
|
200
|
+
- lib
|
201
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
202
|
+
requirements:
|
203
|
+
- - '>='
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
206
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - '>='
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '0'
|
211
|
+
requirements: []
|
212
|
+
rubyforge_project:
|
213
|
+
rubygems_version: 2.4.6
|
214
|
+
signing_key:
|
215
|
+
specification_version: 4
|
216
|
+
summary: A gem for calling the GoCardless Pro API
|
217
|
+
test_files:
|
218
|
+
- spec/api_service_spec.rb
|
219
|
+
- spec/client_spec.rb
|
220
|
+
- spec/error_spec.rb
|
221
|
+
- spec/resources/api_key_spec.rb
|
222
|
+
- spec/resources/creditor_bank_account_spec.rb
|
223
|
+
- spec/resources/creditor_spec.rb
|
224
|
+
- spec/resources/customer_bank_account_spec.rb
|
225
|
+
- spec/resources/customer_spec.rb
|
226
|
+
- spec/resources/event_spec.rb
|
227
|
+
- spec/resources/helper_spec.rb
|
228
|
+
- spec/resources/mandate_spec.rb
|
229
|
+
- spec/resources/payment_spec.rb
|
230
|
+
- spec/resources/payout_spec.rb
|
231
|
+
- spec/resources/publishable_api_key_spec.rb
|
232
|
+
- spec/resources/redirect_flow_spec.rb
|
233
|
+
- spec/resources/refund_spec.rb
|
234
|
+
- spec/resources/role_spec.rb
|
235
|
+
- spec/resources/subscription_spec.rb
|
236
|
+
- spec/resources/user_spec.rb
|
237
|
+
- spec/response_spec.rb
|
238
|
+
- spec/services/api_key_service_spec.rb
|
239
|
+
- spec/services/creditor_bank_account_service_spec.rb
|
240
|
+
- spec/services/creditor_service_spec.rb
|
241
|
+
- spec/services/customer_bank_account_service_spec.rb
|
242
|
+
- spec/services/customer_service_spec.rb
|
243
|
+
- spec/services/event_service_spec.rb
|
244
|
+
- spec/services/helper_service_spec.rb
|
245
|
+
- spec/services/mandate_service_spec.rb
|
246
|
+
- spec/services/payment_service_spec.rb
|
247
|
+
- spec/services/payout_service_spec.rb
|
248
|
+
- spec/services/publishable_api_key_service_spec.rb
|
249
|
+
- spec/services/redirect_flow_service_spec.rb
|
250
|
+
- spec/services/refund_service_spec.rb
|
251
|
+
- spec/services/role_service_spec.rb
|
252
|
+
- spec/services/subscription_service_spec.rb
|
253
|
+
- spec/services/user_service_spec.rb
|
254
|
+
- spec/spec_helper.rb
|
255
|
+
has_rdoc:
|