Class: Increase::Resources::InboundMailItems
- Inherits:
-
Object
- Object
- Increase::Resources::InboundMailItems
- Defined in:
- lib/increase/resources/inbound_mail_items.rb
Instance Method Summary collapse
-
#action(inbound_mail_item_id, checks: , request_options: {}) ⇒ Increase::Models::InboundMailItem
Action a Inbound Mail Item.
-
#initialize(client:) ⇒ InboundMailItems
constructor
private
A new instance of InboundMailItems.
-
#list(created_at: nil, cursor: nil, limit: nil, lockbox_id: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::InboundMailItem>
Some parameter documentations has been truncated, see Models::InboundMailItemListParams for more details.
-
#retrieve(inbound_mail_item_id, request_options: {}) ⇒ Increase::Models::InboundMailItem
Retrieve an Inbound Mail Item.
Constructor Details
#initialize(client:) ⇒ InboundMailItems
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 InboundMailItems.
85 86 87 |
# File 'lib/increase/resources/inbound_mail_items.rb', line 85 def initialize(client:) @client = client end |
Instance Method Details
#action(inbound_mail_item_id, checks: , request_options: {}) ⇒ Increase::Models::InboundMailItem
Action a Inbound Mail Item
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/increase/resources/inbound_mail_items.rb', line 71 def action(inbound_mail_item_id, params) parsed, = Increase::InboundMailItemActionParams.dump_request(params) @client.request( method: :post, path: ["inbound_mail_items/%1$s/action", inbound_mail_item_id], body: parsed, model: Increase::InboundMailItem, options: ) end |
#list(created_at: nil, cursor: nil, limit: nil, lockbox_id: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::InboundMailItem>
Some parameter documentations has been truncated, see Models::InboundMailItemListParams for more details.
List Inbound Mail Items
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/increase/resources/inbound_mail_items.rb', line 46 def list(params = {}) parsed, = Increase::InboundMailItemListParams.dump_request(params) @client.request( method: :get, path: "inbound_mail_items", query: parsed, page: Increase::Internal::Page, model: Increase::InboundMailItem, options: ) end |
#retrieve(inbound_mail_item_id, request_options: {}) ⇒ Increase::Models::InboundMailItem
Retrieve an Inbound Mail Item
17 18 19 20 21 22 23 24 |
# File 'lib/increase/resources/inbound_mail_items.rb', line 17 def retrieve(inbound_mail_item_id, params = {}) @client.request( method: :get, path: ["inbound_mail_items/%1$s", inbound_mail_item_id], model: Increase::InboundMailItem, options: params[:request_options] ) end |