Class: Increase::Resources::ACHPrenotifications
- Inherits:
-
Object
- Object
- Increase::Resources::ACHPrenotifications
- Defined in:
- lib/increase/resources/ach_prenotifications.rb,
sig/increase/resources/ach_prenotifications.rbs
Instance Method Summary collapse
-
#create(account_id:, account_number:, routing_number:, addendum: nil, company_descriptive_date: nil, company_discretionary_data: nil, company_entry_description: nil, company_name: nil, credit_debit_indicator: nil, effective_date: nil, individual_id: nil, individual_name: nil, standard_entry_class_code: nil, request_options: {}) ⇒ Increase::Models::ACHPrenotification
Create an ACH Prenotification.
-
#initialize(client:) ⇒ ACHPrenotifications
constructor
private
A new instance of ACHPrenotifications.
-
#list(created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::ACHPrenotification>
List ACH Prenotifications.
-
#retrieve(ach_prenotification_id, request_options: {}) ⇒ Increase::Models::ACHPrenotification
Retrieve an ACH Prenotification.
Constructor Details
#initialize(client:) ⇒ ACHPrenotifications
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ACHPrenotifications.
121 122 123 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 121 def initialize(client:) @client = client end |
Instance Method Details
#create(account_id:, account_number:, routing_number:, addendum: nil, company_descriptive_date: nil, company_discretionary_data: nil, company_entry_description: nil, company_name: nil, credit_debit_indicator: nil, effective_date: nil, individual_id: nil, individual_name: nil, standard_entry_class_code: nil, request_options: {}) ⇒ Increase::Models::ACHPrenotification
Create an ACH Prenotification
51 52 53 54 55 56 57 58 59 60 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 51 def create(params) parsed, = Increase::ACHPrenotificationCreateParams.dump_request(params) @client.request( method: :post, path: "ach_prenotifications", body: parsed, model: Increase::ACHPrenotification, options: ) end |
#list(created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::ACHPrenotification>
List ACH Prenotifications
105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 105 def list(params = {}) parsed, = Increase::ACHPrenotificationListParams.dump_request(params) query = Increase::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "ach_prenotifications", query: query, page: Increase::Internal::Page, model: Increase::ACHPrenotification, options: ) end |
#retrieve(ach_prenotification_id, request_options: {}) ⇒ Increase::Models::ACHPrenotification
Retrieve an ACH Prenotification
73 74 75 76 77 78 79 80 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 73 def retrieve(ach_prenotification_id, params = {}) @client.request( method: :get, path: ["ach_prenotifications/%1$s", ach_prenotification_id], model: Increase::ACHPrenotification, options: params[:request_options] ) end |