Skip to content

Commit

Permalink
Changes from gocardless/gocardless-pro-ruby-template@03f83d5523ebed88…
Browse files Browse the repository at this point in the history
…7479c43ef7d527527e7faf8d
  • Loading branch information
gocardless-robot committed Aug 23, 2024
1 parent 7498725 commit d310888
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/gocardless_pro/resources/mandate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module Resources
class Mandate
attr_reader :authorisation_source
attr_reader :consent_parameters
attr_reader :consent_type
attr_reader :created_at
attr_reader :funds_settlement
attr_reader :id
Expand All @@ -37,6 +38,7 @@ def initialize(object, response = nil)

@authorisation_source = object['authorisation_source']
@consent_parameters = object['consent_parameters']
@consent_type = object['consent_type']
@created_at = object['created_at']
@funds_settlement = object['funds_settlement']
@id = object['id']
Expand Down
17 changes: 17 additions & 0 deletions spec/resources/mandate_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand All @@ -40,6 +41,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand All @@ -63,6 +65,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -119,6 +122,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -165,6 +169,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -202,6 +207,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -233,6 +239,8 @@

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

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

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

expect(get_list_response.records.first.funds_settlement).to eq('funds_settlement-input')
Expand Down Expand Up @@ -273,6 +281,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -302,6 +311,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -347,6 +357,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -386,6 +397,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -447,6 +459,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -486,6 +499,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -531,6 +545,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -565,6 +580,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -610,6 +626,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down
21 changes: 21 additions & 0 deletions spec/services/mandates_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand All @@ -40,6 +41,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand All @@ -63,6 +65,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -142,6 +145,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -188,6 +192,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -240,6 +245,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -276,6 +282,8 @@

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

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

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

expect(get_list_response.records.first.funds_settlement).to eq('funds_settlement-input')
Expand Down Expand Up @@ -339,6 +347,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -368,6 +377,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -406,6 +416,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -435,6 +446,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -469,6 +481,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -501,6 +514,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -546,6 +560,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -585,6 +600,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -701,6 +717,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -765,6 +782,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -821,6 +839,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -855,6 +874,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down Expand Up @@ -911,6 +931,7 @@

'authorisation_source' => 'authorisation_source-input',
'consent_parameters' => 'consent_parameters-input',
'consent_type' => 'consent_type-input',
'created_at' => 'created_at-input',
'funds_settlement' => 'funds_settlement-input',
'id' => 'id-input',
Expand Down

0 comments on commit d310888

Please sign in to comment.