Class: Increase::Resources::IntrafiExclusions
- Inherits:
-
Object
- Object
- Increase::Resources::IntrafiExclusions
- Defined in:
- lib/increase/resources/intrafi_exclusions.rb
Instance Method Summary collapse
-
#archive(intrafi_exclusion_id, request_options: {}) ⇒ Increase::Models::IntrafiExclusion
Some parameter documentations has been truncated, see Models::IntrafiExclusionArchiveParams for more details.
-
#create(bank_name: , entity_id: , request_options: {}) ⇒ Increase::Models::IntrafiExclusion
Create an IntraFi Exclusion.
-
#initialize(client:) ⇒ IntrafiExclusions
constructor
private
A new instance of IntrafiExclusions.
-
#list(cursor: nil, entity_id: nil, idempotency_key: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::IntrafiExclusion>
Some parameter documentations has been truncated, see Models::IntrafiExclusionListParams for more details.
-
#retrieve(intrafi_exclusion_id, request_options: {}) ⇒ Increase::Models::IntrafiExclusion
Get an IntraFi Exclusion.
Constructor Details
#initialize(client:) ⇒ IntrafiExclusions
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 IntrafiExclusions.
108 109 110 |
# File 'lib/increase/resources/intrafi_exclusions.rb', line 108 def initialize(client:) @client = client end |
Instance Method Details
#archive(intrafi_exclusion_id, request_options: {}) ⇒ Increase::Models::IntrafiExclusion
Some parameter documentations has been truncated, see Models::IntrafiExclusionArchiveParams for more details.
Archive an IntraFi Exclusion
96 97 98 99 100 101 102 103 |
# File 'lib/increase/resources/intrafi_exclusions.rb', line 96 def archive(intrafi_exclusion_id, params = {}) @client.request( method: :post, path: ["intrafi_exclusions/%1$s/archive", intrafi_exclusion_id], model: Increase::IntrafiExclusion, options: params[:request_options] ) end |
#create(bank_name: , entity_id: , request_options: {}) ⇒ Increase::Models::IntrafiExclusion
Create an IntraFi Exclusion
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/increase/resources/intrafi_exclusions.rb', line 19 def create(params) parsed, = Increase::IntrafiExclusionCreateParams.dump_request(params) @client.request( method: :post, path: "intrafi_exclusions", body: parsed, model: Increase::IntrafiExclusion, options: ) end |
#list(cursor: nil, entity_id: nil, idempotency_key: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::IntrafiExclusion>
Some parameter documentations has been truncated, see Models::IntrafiExclusionListParams for more details.
List IntraFi Exclusions
70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/increase/resources/intrafi_exclusions.rb', line 70 def list(params = {}) parsed, = Increase::IntrafiExclusionListParams.dump_request(params) @client.request( method: :get, path: "intrafi_exclusions", query: parsed, page: Increase::Internal::Page, model: Increase::IntrafiExclusion, options: ) end |
#retrieve(intrafi_exclusion_id, request_options: {}) ⇒ Increase::Models::IntrafiExclusion
Get an IntraFi Exclusion
41 42 43 44 45 46 47 48 |
# File 'lib/increase/resources/intrafi_exclusions.rb', line 41 def retrieve(intrafi_exclusion_id, params = {}) @client.request( method: :get, path: ["intrafi_exclusions/%1$s", intrafi_exclusion_id], model: Increase::IntrafiExclusion, options: params[:request_options] ) end |