Class: AbacatePay::Resources::Transparents

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

Overview

Represents a transparent checkout (PIX or boleto) in the AbacatePay system.

Constant Summary collapse

RESOURCE_PROPERTIES =
{
  customer: "AbacatePay::Resources::Customers"
}.freeze
DATETIME_PROPERTIES =
%w[created_at updated_at expires_at].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Transparents

Returns a new instance of Transparents.



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

def initialize(data)
  fill(data)
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def amount
  @amount
end

#bar_codeObject

Returns the value of attribute bar_code.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def bar_code
  @bar_code
end

#br_codeObject

Returns the value of attribute br_code.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def br_code
  @br_code
end

#br_code_base64Object

Returns the value of attribute br_code_base64.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def br_code_base64
  @br_code_base64
end

#created_atObject

Returns the value of attribute created_at.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def created_at
  @created_at
end

#customerObject

Returns the value of attribute customer.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def customer
  @customer
end

#descriptionObject

Returns the value of attribute description.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def description
  @description
end

#dev_modeObject

Returns the value of attribute dev_mode.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def dev_mode
  @dev_mode
end

#due_dateObject

Returns the value of attribute due_date.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def due_date
  @due_date
end

#expires_atObject

Returns the value of attribute expires_at.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def expires_at
  @expires_at
end

#expires_inObject

Returns the value of attribute expires_in.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def expires_in
  @expires_in
end

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def id
  @id
end

#metadataObject

Returns the value of attribute metadata.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def 
  @metadata
end

#methodObject

Returns the value of attribute method.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def method
  @method
end

#qr_codeObject

Returns the value of attribute qr_code.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def qr_code
  @qr_code
end

#qr_code_imageObject

Returns the value of attribute qr_code_image.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def qr_code_image
  @qr_code_image
end

#statusObject

Returns the value of attribute status.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def status
  @status
end

#updated_atObject

Returns the value of attribute updated_at.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def updated_at
  @updated_at
end

#urlObject

Returns the value of attribute url.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def url
  @url
end

Instance Method Details

#dev_mode?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/abacate_pay/resources/transparents.rb', line 26

def dev_mode?
  @dev_mode
end