Class: Increase::Resources::ACHPrenotifications
- Inherits:
-
Object
- Object
- Increase::Resources::ACHPrenotifications
- Defined in:
- lib/increase/resources/ach_prenotifications.rb
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
Some parameter documentations has been truncated, see Models::ACHPrenotificationCreateParams for more details.
-
#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>
Some parameter documentations has been truncated, see Models::ACHPrenotificationListParams for more details.
-
#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.
110 111 112 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 110 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
Some parameter documentations has been truncated, see Models::ACHPrenotificationCreateParams for more details.
Create an ACH Prenotification
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 44 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>
Some parameter documentations has been truncated, see Models::ACHPrenotificationListParams for more details.
List ACH Prenotifications
95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 95 def list(params = {}) parsed, = Increase::ACHPrenotificationListParams.dump_request(params) @client.request( method: :get, path: "ach_prenotifications", query: parsed, page: Increase::Internal::Page, model: Increase::ACHPrenotification, options: ) end |
#retrieve(ach_prenotification_id, request_options: {}) ⇒ Increase::Models::ACHPrenotification
Retrieve an ACH Prenotification
66 67 68 69 70 71 72 73 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 66 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 |