Class: Increase::Resources::ACHPrenotifications
- Inherits:
-
Object
- Object
- Increase::Resources::ACHPrenotifications
- Defined in:
- lib/increase/resources/ach_prenotifications.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::ACHPrenotification
Create an ACH Prenotification.
-
#initialize(client:) ⇒ ACHPrenotifications
constructor
A new instance of ACHPrenotifications.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::ACHPrenotification>
List ACH Prenotifications.
-
#retrieve(ach_prenotification_id, opts = {}) ⇒ Increase::Models::ACHPrenotification
Retrieve an ACH Prenotification.
Constructor Details
#initialize(client:) ⇒ ACHPrenotifications
Returns a new instance of ACHPrenotifications.
6 7 8 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::ACHPrenotification
Create an ACH Prenotification
33 34 35 36 37 38 39 40 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 33 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/ach_prenotifications" req[:body] = params req[:model] = Increase::Models::ACHPrenotification @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::ACHPrenotification>
List ACH Prenotifications
71 72 73 74 75 76 77 78 79 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 71 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/ach_prenotifications" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::ACHPrenotification @client.request(req, opts) end |
#retrieve(ach_prenotification_id, opts = {}) ⇒ Increase::Models::ACHPrenotification
Retrieve an ACH Prenotification
48 49 50 51 52 53 54 |
# File 'lib/increase/resources/ach_prenotifications.rb', line 48 def retrieve(ach_prenotification_id, opts = {}) req = {} req[:method] = :get req[:path] = "/ach_prenotifications/#{ach_prenotification_id}" req[:model] = Increase::Models::ACHPrenotification @client.request(req, opts) end |