Skip to content

Commit

Permalink
Changes from gocardless/gocardless-pro-ruby-template@7aca7f18e48ece45…
Browse files Browse the repository at this point in the history
…f72ff20fde1617e09ef86005
  • Loading branch information
gocardless-robot committed Aug 22, 2024
1 parent 91fd660 commit 7498725
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/gocardless_pro/resources/customer_bank_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class CustomerBankAccount
attr_reader :account_holder_name
attr_reader :account_number_ending
attr_reader :account_type
attr_reader :bank_account_token
attr_reader :bank_name
attr_reader :country_code
attr_reader :created_at
Expand All @@ -47,6 +48,7 @@ def initialize(object, response = nil)
@account_holder_name = object['account_holder_name']
@account_number_ending = object['account_number_ending']
@account_type = object['account_type']
@bank_account_token = object['bank_account_token']
@bank_name = object['bank_name']
@country_code = object['country_code']
@created_at = object['created_at']
Expand Down
15 changes: 15 additions & 0 deletions spec/resources/customer_bank_account_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand All @@ -38,6 +39,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand All @@ -58,6 +60,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -111,6 +114,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -154,6 +158,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -188,6 +193,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -219,6 +225,8 @@

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

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

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

expect(get_list_response.records.first.country_code).to eq('country_code-input')
Expand Down Expand Up @@ -252,6 +260,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand All @@ -278,6 +287,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -320,6 +330,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -356,6 +367,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -414,6 +426,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -450,6 +463,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -492,6 +506,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down
19 changes: 19 additions & 0 deletions spec/services/customer_bank_accounts_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand All @@ -38,6 +39,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand All @@ -58,6 +60,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -134,6 +137,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -177,6 +181,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -226,6 +231,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -262,6 +268,8 @@

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

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

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

expect(get_list_response.records.first.country_code).to eq('country_code-input')
Expand Down Expand Up @@ -318,6 +326,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand All @@ -344,6 +353,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -379,6 +389,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand All @@ -405,6 +416,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -436,6 +448,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -465,6 +478,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -507,6 +521,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -543,6 +558,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -656,6 +672,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -717,6 +734,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down Expand Up @@ -770,6 +788,7 @@
'account_holder_name' => 'account_holder_name-input',
'account_number_ending' => 'account_number_ending-input',
'account_type' => 'account_type-input',
'bank_account_token' => 'bank_account_token-input',
'bank_name' => 'bank_name-input',
'country_code' => 'country_code-input',
'created_at' => 'created_at-input',
Expand Down

0 comments on commit 7498725

Please sign in to comment.