Class: Increase::Resources::Simulations::Exports

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Exports

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 Exports.

Parameters:



32
33
34
# File 'lib/increase/resources/simulations/exports.rb', line 32

def initialize(client:)
  @client = client
end

Instance Method Details

#create(account_id:, request_options: {}) ⇒ Increase::Models::Export

Simulates a tax form export being generated.

Parameters:

  • account_id (String)

    The identifier of the Account the tax document is for.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



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

def create(params)
  parsed, options = Increase::Simulations::ExportCreateParams.dump_request(params)
  @client.request(
    method: :post,
    path: "simulations/exports",
    body: parsed,
    model: Increase::Export,
    options: options
  )
end