Skip to content

Commit

Permalink
Merge pull request #116 from gocardless/template-changes
Browse files Browse the repository at this point in the history
Template changes
  • Loading branch information
matthieuprat authored Feb 10, 2023
2 parents 38808d8 + 85bd3f3 commit 2ad6f47
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/gocardless_pro/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def default_options
'User-Agent' => "#{user_agent}",
'Content-Type' => 'application/json',
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
'GoCardless-Client-Version' => '2.42.0',
'GoCardless-Client-Version' => '2.43.0',
},
}
end
Expand Down
2 changes: 2 additions & 0 deletions lib/gocardless_pro/resources/verification_detail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class VerificationDetail
attr_reader :company_number
attr_reader :description
attr_reader :directors
attr_reader :name
attr_reader :postal_code

# Initialize a verification_detail resource instance
Expand All @@ -34,6 +35,7 @@ def initialize(object, response = nil)
@description = object['description']
@directors = object['directors']
@links = object['links']
@name = object['name']
@postal_code = object['postal_code']
@response = response
end
Expand Down
2 changes: 1 addition & 1 deletion lib/gocardless_pro/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module GoCardlessPro

module GoCardlessPro
# Current version of the GC gem
VERSION = '2.42.0'
VERSION = '2.43.0'
end
9 changes: 9 additions & 0 deletions spec/resources/verification_detail_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}],
meta: {
Expand Down Expand Up @@ -58,6 +59,8 @@

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

expect(get_list_response.records.first.name).to eq('name-input')

expect(get_list_response.records.first.postal_code).to eq('postal_code-input')
end

Expand All @@ -84,6 +87,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}],
meta: {
Expand All @@ -108,6 +112,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}],
meta: {
Expand Down Expand Up @@ -140,6 +145,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}
end
Expand All @@ -158,6 +164,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
},
}
Expand All @@ -176,6 +183,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
},

Expand Down Expand Up @@ -227,6 +235,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}
end
Expand Down
13 changes: 13 additions & 0 deletions spec/services/verification_details_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}],
meta: {
Expand Down Expand Up @@ -62,6 +63,8 @@

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

expect(get_list_response.records.first.name).to eq('name-input')

expect(get_list_response.records.first.postal_code).to eq('postal_code-input')
end

Expand Down Expand Up @@ -111,6 +114,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}],
meta: {
Expand All @@ -135,6 +139,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}],
meta: {
Expand Down Expand Up @@ -168,6 +173,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}],
meta: {
Expand All @@ -192,6 +198,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}],
meta: {
Expand Down Expand Up @@ -221,6 +228,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}],
meta: {
Expand Down Expand Up @@ -248,6 +256,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}],
meta: {
Expand Down Expand Up @@ -280,6 +289,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}
end
Expand All @@ -298,6 +308,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
},
}
Expand All @@ -316,6 +327,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
},

Expand Down Expand Up @@ -390,6 +402,7 @@
'description' => 'description-input',
'directors' => 'directors-input',
'links' => 'links-input',
'name' => 'name-input',
'postal_code' => 'postal_code-input',
}
end
Expand Down

0 comments on commit 2ad6f47

Please sign in to comment.