Class: FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Tax

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/finch-api/models/sandbox/payment_create_params.rb

Defined Under Namespace

Modules: Type Classes: Attributes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metadata: nil) ⇒ Tax

Returns a new instance of Tax.

Parameters:

  • metadata (Hash{Symbol=>Object}) (defaults to: nil)


8
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 8

def initialize(amount: nil, attributes: nil, currency: nil, employer: nil, name: nil, type: nil, **) = super

Instance Attribute Details

#amountInteger?

The tax amount in cents.

Returns:

  • (Integer, nil)


466
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 466

optional :amount, Integer, nil?: true

#attributesFinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Tax::Attributes?



471
472
473
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 471

optional :attributes,
-> { FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Tax::Attributes },
nil?: true

#currencyString?

The currency code.

Returns:

  • (String, nil)


479
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 479

optional :currency, String, nil?: true

#employerBoolean?

‘true` if the amount is paid by the employers.

Returns:

  • (Boolean, nil)


485
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 485

optional :employer, FinchAPI::BooleanModel, nil?: true

#metadata=(value) ⇒ Hash{Symbol=>Object} (writeonly)

Returns:

  • (Hash{Symbol=>Object})


2
3
4
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 2

def metadata=(value)
  @metadata = value
end

#nameString?

The exact name of tax from the pay statement.

Returns:

  • (String, nil)


491
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 491

optional :name, String, nil?: true

#typeSymbol, ...

The type of taxes.



497
498
499
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 497

optional :type,
enum: -> { FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Tax::Type },
nil?: true