Class: AbacatePay::Resources::Payouts

Inherits:
Resource
  • Object
show all
Defined in:
lib/abacate_pay/resources/payouts.rb

Overview

Represents a payout (withdrawal) in the AbacatePay system.

Constant Summary collapse

ENUM_PROPERTIES =
{
  status: "AbacatePay::Enums::Payouts::Statuses"
}.freeze
DATETIME_PROPERTIES =
%w[created_at updated_at].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Payouts

Returns a new instance of Payouts.



22
23
24
# File 'lib/abacate_pay/resources/payouts.rb', line 22

def initialize(data)
  fill(data)
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



19
20
21
# File 'lib/abacate_pay/resources/payouts.rb', line 19

def amount
  @amount
end

#created_atObject

Returns the value of attribute created_at.



19
20
21
# File 'lib/abacate_pay/resources/payouts.rb', line 19

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



19
20
21
# File 'lib/abacate_pay/resources/payouts.rb', line 19

def description
  @description
end

#external_idObject

Returns the value of attribute external_id.



19
20
21
# File 'lib/abacate_pay/resources/payouts.rb', line 19

def external_id
  @external_id
end

#idObject

Returns the value of attribute id.



19
20
21
# File 'lib/abacate_pay/resources/payouts.rb', line 19

def id
  @id
end

#pix_keyString?

Returns Destination PIX key.

Returns:

  • (String, nil)

    Destination PIX key



14
15
16
# File 'lib/abacate_pay/resources/payouts.rb', line 14

def pix_key
  @pix_key
end

#pix_key_typeString?

Returns Destination PIX key type.

Returns:

  • (String, nil)

    Destination PIX key type



17
18
19
# File 'lib/abacate_pay/resources/payouts.rb', line 17

def pix_key_type
  @pix_key_type
end

#statusObject

Returns the value of attribute status.



19
20
21
# File 'lib/abacate_pay/resources/payouts.rb', line 19

def status
  @status
end

#updated_atObject

Returns the value of attribute updated_at.



19
20
21
# File 'lib/abacate_pay/resources/payouts.rb', line 19

def updated_at
  @updated_at
end