Class: Increase::Resources::Simulations::Documents

Inherits:
Object
  • Object
show all
Defined in:
lib/increase/resources/simulations/documents.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Documents

Returns a new instance of Documents.



7
8
9
# File 'lib/increase/resources/simulations/documents.rb', line 7

def initialize(client:)
  @client = client
end

Instance Method Details

#create(params = {}, opts = {}) ⇒ Increase::Models::Document

Simulates an tax document being created for an account.

Parameters:

  • params (Hash) (defaults to: {})

    Attributes to send in this request.

  • opts (Hash|RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Options Hash (params):

  • :account_id (String)

    The identifier of the Account the tax document is for.

Returns:



19
20
21
22
23
24
25
26
# File 'lib/increase/resources/simulations/documents.rb', line 19

def create(params = {}, opts = {})
  req = {}
  req[:method] = :post
  req[:path] = "/simulations/documents"
  req[:body] = params
  req[:model] = Increase::Models::Document
  @client.request(req, opts)
end