diff --git a/lib/gocardless_pro/client.rb b/lib/gocardless_pro/client.rb index 7f9ba3c..7d89c3e 100644 --- a/lib/gocardless_pro/client.rb +++ b/lib/gocardless_pro/client.rb @@ -233,7 +233,7 @@ def default_options 'User-Agent' => "#{user_agent}", 'Content-Type' => 'application/json', 'GoCardless-Client-Library' => 'gocardless-pro-ruby', - 'GoCardless-Client-Version' => '3.0.0' + 'GoCardless-Client-Version' => '3.1.0' } } end diff --git a/lib/gocardless_pro/resources/billing_request.rb b/lib/gocardless_pro/resources/billing_request.rb index 77ba2b8..fb813eb 100644 --- a/lib/gocardless_pro/resources/billing_request.rb +++ b/lib/gocardless_pro/resources/billing_request.rb @@ -10,18 +10,20 @@ module GoCardlessPro module Resources # Represents an instance of a billing_request resource returned from the API - # Billing Requests help create resources that require input or action from a - # customer. An example of required input might be additional customer - # billing - # details, while an action would be asking a customer to authorise a payment - # using their mobile banking app. + # Billing Requests help create resources that require input or action from + # a customer. An example of required input might be additional customer + # billing details, while an action would be asking a customer to authorise a + # payment using their mobile banking app. # # See [Billing Requests: # Overview](https://developer.gocardless.com/getting-started/billing-requests/overview/) - # for how-to's, explanations and tutorials. + # for how-to's, explanations and tutorials.
Important: All properties associated with + # `subscription_request` and `instalment_schedule_request` are only + # supported for ACH and PAD schemes.
class BillingRequest - attr_reader :actions, :created_at, :fallback_enabled, :id, :mandate_request, :metadata, :payment_request, - :purpose_code, :resources, :status, :subscription_request + attr_reader :actions, :created_at, :fallback_enabled, :fallback_occurred, :id, :instalment_schedule_request, + :mandate_request, :metadata, :payment_request, :purpose_code, :resources, :status, :subscription_request # Initialize a billing_request resource instance # @param object [Hash] an object returned from the API @@ -31,7 +33,9 @@ def initialize(object, response = nil) @actions = object['actions'] @created_at = object['created_at'] @fallback_enabled = object['fallback_enabled'] + @fallback_occurred = object['fallback_occurred'] @id = object['id'] + @instalment_schedule_request = object['instalment_schedule_request'] @links = object['links'] @mandate_request = object['mandate_request'] @metadata = object['metadata'] @@ -82,6 +86,14 @@ def customer_billing_detail @links['customer_billing_detail'] end + def instalment_schedule_request + @links['instalment_schedule_request'] + end + + def instalment_schedule_request_instalment_schedule + @links['instalment_schedule_request_instalment_schedule'] + end + def mandate_request @links['mandate_request'] end @@ -109,6 +121,10 @@ def payment_request_payment def subscription_request @links['subscription_request'] end + + def subscription_request_subscription + @links['subscription_request_subscription'] + end end end end diff --git a/lib/gocardless_pro/resources/billing_request_flow.rb b/lib/gocardless_pro/resources/billing_request_flow.rb index fb42143..62a3546 100644 --- a/lib/gocardless_pro/resources/billing_request_flow.rb +++ b/lib/gocardless_pro/resources/billing_request_flow.rb @@ -15,7 +15,7 @@ module Resources # authorisation (such as open banking single payments). class BillingRequestFlow attr_reader :authorisation_url, :auto_fulfil, :created_at, :customer_details_captured, :exit_uri, :expires_at, - :id, :language, :lock_bank_account, :lock_currency, :lock_customer_details, :prefilled_bank_account, :prefilled_customer, :redirect_uri, :session_token, :show_redirect_buttons, :show_success_redirect_button + :id, :language, :lock_bank_account, :lock_currency, :lock_customer_details, :prefilled_bank_account, :prefilled_customer, :redirect_uri, :session_token, :show_redirect_buttons, :show_success_redirect_button, :skip_success_screen # Initialize a billing_request_flow resource instance # @param object [Hash] an object returned from the API @@ -40,6 +40,7 @@ def initialize(object, response = nil) @session_token = object['session_token'] @show_redirect_buttons = object['show_redirect_buttons'] @show_success_redirect_button = object['show_success_redirect_button'] + @skip_success_screen = object['skip_success_screen'] @response = response end diff --git a/lib/gocardless_pro/services/billing_requests_service.rb b/lib/gocardless_pro/services/billing_requests_service.rb index f3b6fc9..4329974 100644 --- a/lib/gocardless_pro/services/billing_requests_service.rb +++ b/lib/gocardless_pro/services/billing_requests_service.rb @@ -10,7 +10,9 @@ module GoCardlessPro module Services # Service for making requests to the BillingRequest endpoints class BillingRequestsService < BaseService - # + #Important: All properties associated with + # `subscription_request` and `instalment_schedule_request` are only supported + # for ACH and PAD schemes.
# Example URL: /billing_requests # @param options [Hash] parameters as a hash, under a params key. def create(options = {}) diff --git a/lib/gocardless_pro/version.rb b/lib/gocardless_pro/version.rb index ba64b1c..bd6a60f 100644 --- a/lib/gocardless_pro/version.rb +++ b/lib/gocardless_pro/version.rb @@ -3,5 +3,5 @@ module GoCardlessPro module GoCardlessPro # Current version of the GC gem - VERSION = '3.0.0' + VERSION = '3.1.0' end diff --git a/spec/resources/billing_request_flow_spec.rb b/spec/resources/billing_request_flow_spec.rb index 106b901..5bf28cd 100644 --- a/spec/resources/billing_request_flow_spec.rb +++ b/spec/resources/billing_request_flow_spec.rb @@ -32,7 +32,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } end @@ -59,7 +60,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } } ) @@ -86,7 +88,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } }.to_json, @@ -146,7 +149,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } end @@ -208,7 +212,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } }.to_json, @@ -257,7 +262,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } }.to_json, headers: response_headers diff --git a/spec/resources/billing_request_spec.rb b/spec/resources/billing_request_spec.rb index bbb46b1..cbf2150 100644 --- a/spec/resources/billing_request_spec.rb +++ b/spec/resources/billing_request_spec.rb @@ -18,7 +18,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -39,7 +41,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -60,7 +64,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -114,7 +120,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -158,7 +166,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -196,7 +206,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -239,7 +251,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -271,7 +285,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -314,7 +330,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -346,7 +364,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -389,7 +409,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -421,7 +443,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -464,7 +488,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -496,7 +522,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -539,7 +567,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -568,7 +598,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -600,8 +632,12 @@ expect(get_list_response.records.first.fallback_enabled).to eq('fallback_enabled-input') + expect(get_list_response.records.first.fallback_occurred).to eq('fallback_occurred-input') + expect(get_list_response.records.first.id).to eq('id-input') + expect(get_list_response.records.first.instalment_schedule_request).to eq('instalment_schedule_request-input') + expect(get_list_response.records.first.mandate_request).to eq('mandate_request-input') expect(get_list_response.records.first.metadata).to eq('metadata-input') @@ -635,7 +671,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -662,7 +700,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -705,7 +745,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -742,7 +784,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -800,7 +844,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -843,7 +889,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -875,7 +923,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -918,7 +968,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -950,7 +1002,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -993,7 +1047,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -1025,7 +1081,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -1068,7 +1126,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', diff --git a/spec/services/billing_request_flows_service_spec.rb b/spec/services/billing_request_flows_service_spec.rb index 4d0d852..bec481e 100644 --- a/spec/services/billing_request_flows_service_spec.rb +++ b/spec/services/billing_request_flows_service_spec.rb @@ -32,7 +32,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } end @@ -59,7 +60,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } } ) @@ -86,7 +88,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } }.to_json, @@ -169,7 +172,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } end @@ -231,7 +235,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } }.to_json, @@ -291,7 +296,8 @@ 'redirect_uri' => 'redirect_uri-input', 'session_token' => 'session_token-input', 'show_redirect_buttons' => 'show_redirect_buttons-input', - 'show_success_redirect_button' => 'show_success_redirect_button-input' + 'show_success_redirect_button' => 'show_success_redirect_button-input', + 'skip_success_screen' => 'skip_success_screen-input' } }.to_json, headers: response_headers diff --git a/spec/services/billing_requests_service_spec.rb b/spec/services/billing_requests_service_spec.rb index 45e64b8..9619ea3 100644 --- a/spec/services/billing_requests_service_spec.rb +++ b/spec/services/billing_requests_service_spec.rb @@ -18,7 +18,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -39,7 +41,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -60,7 +64,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -137,7 +143,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -181,7 +189,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -235,7 +245,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -289,7 +301,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -321,7 +335,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -375,7 +391,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -407,7 +425,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -461,7 +481,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -493,7 +515,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -547,7 +571,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -579,7 +605,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -633,7 +661,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -661,7 +691,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -698,8 +730,12 @@ expect(get_list_response.records.first.fallback_enabled).to eq('fallback_enabled-input') + expect(get_list_response.records.first.fallback_occurred).to eq('fallback_occurred-input') + expect(get_list_response.records.first.id).to eq('id-input') + expect(get_list_response.records.first.instalment_schedule_request).to eq('instalment_schedule_request-input') + expect(get_list_response.records.first.mandate_request).to eq('mandate_request-input') expect(get_list_response.records.first.metadata).to eq('metadata-input') @@ -756,7 +792,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -783,7 +821,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -819,7 +859,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -846,7 +888,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -878,7 +922,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -908,7 +954,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -951,7 +999,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -988,7 +1038,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -1101,7 +1153,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -1155,7 +1209,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -1187,7 +1243,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -1241,7 +1299,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -1273,7 +1333,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -1327,7 +1389,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -1359,7 +1423,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input', @@ -1413,7 +1479,9 @@ 'actions' => 'actions-input', 'created_at' => 'created_at-input', 'fallback_enabled' => 'fallback_enabled-input', + 'fallback_occurred' => 'fallback_occurred-input', 'id' => 'id-input', + 'instalment_schedule_request' => 'instalment_schedule_request-input', 'links' => 'links-input', 'mandate_request' => 'mandate_request-input', 'metadata' => 'metadata-input',