Class: Increase::Resources::IntrafiAccountEnrollments
- Inherits:
-
Object
- Object
- Increase::Resources::IntrafiAccountEnrollments
- Defined in:
- lib/increase/resources/intrafi_account_enrollments.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Enroll an account in the IntraFi deposit sweep network.
-
#initialize(client:) ⇒ IntrafiAccountEnrollments
constructor
A new instance of IntrafiAccountEnrollments.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::IntrafiAccountEnrollment>
List IntraFi Account Enrollments.
-
#retrieve(intrafi_account_enrollment_id, opts = {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Get an IntraFi Account Enrollment.
-
#unenroll(intrafi_account_enrollment_id, opts = {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Unenroll an account from IntraFi.
Constructor Details
#initialize(client:) ⇒ IntrafiAccountEnrollments
Returns a new instance of IntrafiAccountEnrollments.
6 7 8 |
# File 'lib/increase/resources/intrafi_account_enrollments.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Enroll an account in the IntraFi deposit sweep network.
19 20 21 22 23 24 25 26 |
# File 'lib/increase/resources/intrafi_account_enrollments.rb', line 19 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/intrafi_account_enrollments" req[:body] = params req[:model] = Increase::Models::IntrafiAccountEnrollment @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::IntrafiAccountEnrollment>
List IntraFi Account Enrollments
58 59 60 61 62 63 64 65 66 |
# File 'lib/increase/resources/intrafi_account_enrollments.rb', line 58 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/intrafi_account_enrollments" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::IntrafiAccountEnrollment @client.request(req, opts) end |
#retrieve(intrafi_account_enrollment_id, opts = {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Get an IntraFi Account Enrollment
34 35 36 37 38 39 40 |
# File 'lib/increase/resources/intrafi_account_enrollments.rb', line 34 def retrieve(intrafi_account_enrollment_id, opts = {}) req = {} req[:method] = :get req[:path] = "/intrafi_account_enrollments/#{intrafi_account_enrollment_id}" req[:model] = Increase::Models::IntrafiAccountEnrollment @client.request(req, opts) end |
#unenroll(intrafi_account_enrollment_id, opts = {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Unenroll an account from IntraFi.
74 75 76 77 78 79 80 |
# File 'lib/increase/resources/intrafi_account_enrollments.rb', line 74 def unenroll(intrafi_account_enrollment_id, opts = {}) req = {} req[:method] = :post req[:path] = "/intrafi_account_enrollments/#{intrafi_account_enrollment_id}/unenroll" req[:model] = Increase::Models::IntrafiAccountEnrollment @client.request(req, opts) end |