Skip to content

Commit 2ad6f47

Browse files
authored
Merge pull request #116 from gocardless/template-changes
Template changes
2 parents 38808d8 + 85bd3f3 commit 2ad6f47

File tree

5 files changed

+26
-2
lines changed

5 files changed

+26
-2
lines changed

lib/gocardless_pro/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def default_options
208208
'User-Agent' => "#{user_agent}",
209209
'Content-Type' => 'application/json',
210210
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
211-
'GoCardless-Client-Version' => '2.42.0',
211+
'GoCardless-Client-Version' => '2.43.0',
212212
},
213213
}
214214
end

lib/gocardless_pro/resources/verification_detail.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class VerificationDetail
1919
attr_reader :company_number
2020
attr_reader :description
2121
attr_reader :directors
22+
attr_reader :name
2223
attr_reader :postal_code
2324

2425
# Initialize a verification_detail resource instance
@@ -34,6 +35,7 @@ def initialize(object, response = nil)
3435
@description = object['description']
3536
@directors = object['directors']
3637
@links = object['links']
38+
@name = object['name']
3739
@postal_code = object['postal_code']
3840
@response = response
3941
end

lib/gocardless_pro/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ module GoCardlessPro
33

44
module GoCardlessPro
55
# Current version of the GC gem
6-
VERSION = '2.42.0'
6+
VERSION = '2.43.0'
77
end

spec/resources/verification_detail_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
'description' => 'description-input',
2727
'directors' => 'directors-input',
2828
'links' => 'links-input',
29+
'name' => 'name-input',
2930
'postal_code' => 'postal_code-input',
3031
}],
3132
meta: {
@@ -58,6 +59,8 @@
5859

5960
expect(get_list_response.records.first.directors).to eq('directors-input')
6061

62+
expect(get_list_response.records.first.name).to eq('name-input')
63+
6164
expect(get_list_response.records.first.postal_code).to eq('postal_code-input')
6265
end
6366

@@ -84,6 +87,7 @@
8487
'description' => 'description-input',
8588
'directors' => 'directors-input',
8689
'links' => 'links-input',
90+
'name' => 'name-input',
8791
'postal_code' => 'postal_code-input',
8892
}],
8993
meta: {
@@ -108,6 +112,7 @@
108112
'description' => 'description-input',
109113
'directors' => 'directors-input',
110114
'links' => 'links-input',
115+
'name' => 'name-input',
111116
'postal_code' => 'postal_code-input',
112117
}],
113118
meta: {
@@ -140,6 +145,7 @@
140145
'description' => 'description-input',
141146
'directors' => 'directors-input',
142147
'links' => 'links-input',
148+
'name' => 'name-input',
143149
'postal_code' => 'postal_code-input',
144150
}
145151
end
@@ -158,6 +164,7 @@
158164
'description' => 'description-input',
159165
'directors' => 'directors-input',
160166
'links' => 'links-input',
167+
'name' => 'name-input',
161168
'postal_code' => 'postal_code-input',
162169
},
163170
}
@@ -176,6 +183,7 @@
176183
'description' => 'description-input',
177184
'directors' => 'directors-input',
178185
'links' => 'links-input',
186+
'name' => 'name-input',
179187
'postal_code' => 'postal_code-input',
180188
},
181189

@@ -227,6 +235,7 @@
227235
'description' => 'description-input',
228236
'directors' => 'directors-input',
229237
'links' => 'links-input',
238+
'name' => 'name-input',
230239
'postal_code' => 'postal_code-input',
231240
}
232241
end

spec/services/verification_details_service_spec.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
'description' => 'description-input',
2626
'directors' => 'directors-input',
2727
'links' => 'links-input',
28+
'name' => 'name-input',
2829
'postal_code' => 'postal_code-input',
2930
}],
3031
meta: {
@@ -62,6 +63,8 @@
6263

6364
expect(get_list_response.records.first.directors).to eq('directors-input')
6465

66+
expect(get_list_response.records.first.name).to eq('name-input')
67+
6568
expect(get_list_response.records.first.postal_code).to eq('postal_code-input')
6669
end
6770

@@ -111,6 +114,7 @@
111114
'description' => 'description-input',
112115
'directors' => 'directors-input',
113116
'links' => 'links-input',
117+
'name' => 'name-input',
114118
'postal_code' => 'postal_code-input',
115119
}],
116120
meta: {
@@ -135,6 +139,7 @@
135139
'description' => 'description-input',
136140
'directors' => 'directors-input',
137141
'links' => 'links-input',
142+
'name' => 'name-input',
138143
'postal_code' => 'postal_code-input',
139144
}],
140145
meta: {
@@ -168,6 +173,7 @@
168173
'description' => 'description-input',
169174
'directors' => 'directors-input',
170175
'links' => 'links-input',
176+
'name' => 'name-input',
171177
'postal_code' => 'postal_code-input',
172178
}],
173179
meta: {
@@ -192,6 +198,7 @@
192198
'description' => 'description-input',
193199
'directors' => 'directors-input',
194200
'links' => 'links-input',
201+
'name' => 'name-input',
195202
'postal_code' => 'postal_code-input',
196203
}],
197204
meta: {
@@ -221,6 +228,7 @@
221228
'description' => 'description-input',
222229
'directors' => 'directors-input',
223230
'links' => 'links-input',
231+
'name' => 'name-input',
224232
'postal_code' => 'postal_code-input',
225233
}],
226234
meta: {
@@ -248,6 +256,7 @@
248256
'description' => 'description-input',
249257
'directors' => 'directors-input',
250258
'links' => 'links-input',
259+
'name' => 'name-input',
251260
'postal_code' => 'postal_code-input',
252261
}],
253262
meta: {
@@ -280,6 +289,7 @@
280289
'description' => 'description-input',
281290
'directors' => 'directors-input',
282291
'links' => 'links-input',
292+
'name' => 'name-input',
283293
'postal_code' => 'postal_code-input',
284294
}
285295
end
@@ -298,6 +308,7 @@
298308
'description' => 'description-input',
299309
'directors' => 'directors-input',
300310
'links' => 'links-input',
311+
'name' => 'name-input',
301312
'postal_code' => 'postal_code-input',
302313
},
303314
}
@@ -316,6 +327,7 @@
316327
'description' => 'description-input',
317328
'directors' => 'directors-input',
318329
'links' => 'links-input',
330+
'name' => 'name-input',
319331
'postal_code' => 'postal_code-input',
320332
},
321333

@@ -390,6 +402,7 @@
390402
'description' => 'description-input',
391403
'directors' => 'directors-input',
392404
'links' => 'links-input',
405+
'name' => 'name-input',
393406
'postal_code' => 'postal_code-input',
394407
}
395408
end

0 commit comments

Comments
 (0)