Class: Increase::Resources::IntrafiAccountEnrollments
- Inherits:
-
Object
- Object
- Increase::Resources::IntrafiAccountEnrollments
- Defined in:
- lib/increase/resources/intrafi_account_enrollments.rb
Instance Method Summary collapse
-
#create(account_id: , email_address: , request_options: {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Enroll an account in the IntraFi deposit sweep network.
-
#initialize(client:) ⇒ IntrafiAccountEnrollments
constructor
private
A new instance of IntrafiAccountEnrollments.
-
#list(account_id: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::IntrafiAccountEnrollment>
Some parameter documentations has been truncated, see Models::IntrafiAccountEnrollmentListParams for more details.
-
#retrieve(intrafi_account_enrollment_id, request_options: {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Get an IntraFi Account Enrollment.
-
#unenroll(intrafi_account_enrollment_id, request_options: {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Unenroll an account from IntraFi.
Constructor Details
#initialize(client:) ⇒ IntrafiAccountEnrollments
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 IntrafiAccountEnrollments.
107 108 109 |
# File 'lib/increase/resources/intrafi_account_enrollments.rb', line 107 def initialize(client:) @client = client end |
Instance Method Details
#create(account_id: , email_address: , request_options: {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Enroll an account in the IntraFi deposit sweep network
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/increase/resources/intrafi_account_enrollments.rb', line 19 def create(params) parsed, = Increase::IntrafiAccountEnrollmentCreateParams.dump_request(params) @client.request( method: :post, path: "intrafi_account_enrollments", body: parsed, model: Increase::IntrafiAccountEnrollment, options: ) end |
#list(account_id: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::IntrafiAccountEnrollment>
Some parameter documentations has been truncated, see Models::IntrafiAccountEnrollmentListParams for more details.
List IntraFi Account Enrollments
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/increase/resources/intrafi_account_enrollments.rb', line 72 def list(params = {}) parsed, = Increase::IntrafiAccountEnrollmentListParams.dump_request(params) @client.request( method: :get, path: "intrafi_account_enrollments", query: parsed, page: Increase::Internal::Page, model: Increase::IntrafiAccountEnrollment, options: ) end |
#retrieve(intrafi_account_enrollment_id, request_options: {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Get an IntraFi Account Enrollment
41 42 43 44 45 46 47 48 |
# File 'lib/increase/resources/intrafi_account_enrollments.rb', line 41 def retrieve(intrafi_account_enrollment_id, params = {}) @client.request( method: :get, path: ["intrafi_account_enrollments/%1$s", intrafi_account_enrollment_id], model: Increase::IntrafiAccountEnrollment, options: params[:request_options] ) end |
#unenroll(intrafi_account_enrollment_id, request_options: {}) ⇒ Increase::Models::IntrafiAccountEnrollment
Unenroll an account from IntraFi
95 96 97 98 99 100 101 102 |
# File 'lib/increase/resources/intrafi_account_enrollments.rb', line 95 def unenroll(intrafi_account_enrollment_id, params = {}) @client.request( method: :post, path: ["intrafi_account_enrollments/%1$s/unenroll", intrafi_account_enrollment_id], model: Increase::IntrafiAccountEnrollment, options: params[:request_options] ) end |