Class: Paymos::Invoice

Inherits:
Model
  • Object
show all
Defined in:
lib/paymos/models.rb,
sig/paymos.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

#[], deep_freeze, fields, #initialize, #to_h

Constructor Details

This class inherits a constructor from Paymos::Model

Instance Attribute Details

#completed_atInteger? (readonly)

Returns the value of attribute completed_at.

Returns:

  • (Integer, nil)


98
99
100
# File 'sig/paymos.rbs', line 98

def completed_at
  @completed_at
end

#created_atInteger (readonly)

Returns the value of attribute created_at.

Returns:

  • (Integer)


95
96
97
# File 'sig/paymos.rbs', line 95

def created_at
  @created_at
end

#expires_atInteger? (readonly)

Returns the value of attribute expires_at.

Returns:

  • (Integer, nil)


97
98
99
# File 'sig/paymos.rbs', line 97

def expires_at
  @expires_at
end

#invoice_idString (readonly)

Returns the value of attribute invoice_id.

Returns:

  • (String)


87
88
89
# File 'sig/paymos.rbs', line 87

def invoice_id
  @invoice_id
end

#is_finalBoolean (readonly)

Returns the value of attribute is_final.

Returns:

  • (Boolean)


90
91
92
# File 'sig/paymos.rbs', line 90

def is_final
  @is_final
end

#is_testBoolean (readonly)

Returns the value of attribute is_test.

Returns:

  • (Boolean)


91
92
93
# File 'sig/paymos.rbs', line 91

def is_test
  @is_test
end

#orderOrder (readonly)

Returns the value of attribute order.

Returns:



93
94
95
# File 'sig/paymos.rbs', line 93

def order
  @order
end

#paymentPayment? (readonly)

Returns the value of attribute payment.

Returns:



94
95
96
# File 'sig/paymos.rbs', line 94

def payment
  @payment
end

#payment_urlString (readonly)

Returns the value of attribute payment_url.

Returns:

  • (String)


92
93
94
# File 'sig/paymos.rbs', line 92

def payment_url
  @payment_url
end

#project_idString (readonly)

Returns the value of attribute project_id.

Returns:

  • (String)


88
89
90
# File 'sig/paymos.rbs', line 88

def project_id
  @project_id
end

#statusString (readonly)

Returns the value of attribute status.

Returns:

  • (String)


89
90
91
# File 'sig/paymos.rbs', line 89

def status
  @status
end

#updated_atInteger (readonly)

Returns the value of attribute updated_at.

Returns:

  • (Integer)


96
97
98
# File 'sig/paymos.rbs', line 96

def updated_at
  @updated_at
end

Class Method Details

.from(value) ⇒ Object



105
106
107
108
# File 'lib/paymos/models.rb', line 105

def self.from(value)
  model = super
  new(**model.to_h, order: Order.from(model.order), payment: model.payment && Payment.from(model.payment))
end