Class: AbacatePay::Resources::Checkouts
- Defined in:
- lib/abacate_pay/resources/checkouts.rb
Overview
Represents a checkout session in the AbacatePay system.
Constant Summary collapse
- RESOURCE_PROPERTIES =
{ metadata: "AbacatePay::Resources::Billings::Metadata", customer: "AbacatePay::Resources::Customers", products: "AbacatePay::Resources::Billings::Product" }.freeze
- ENUM_PROPERTIES =
{ status: "AbacatePay::Enums::Checkouts::Statuses", frequency: "AbacatePay::Enums::Billings::Frequencies", methods: "AbacatePay::Enums::Billings::Methods" }.freeze
- DATETIME_PROPERTIES =
%w[created_at updated_at].freeze
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#coupons ⇒ Object
readonly
Returns the value of attribute coupons.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#custom_metadata ⇒ Object
readonly
Returns the value of attribute custom_metadata.
-
#customer ⇒ Object
readonly
Returns the value of attribute customer.
-
#dev_mode ⇒ Object
readonly
Returns the value of attribute dev_mode.
-
#due_date ⇒ Object
readonly
Returns the value of attribute due_date.
-
#external_id ⇒ Object
readonly
Returns the value of attribute external_id.
-
#fine ⇒ Object
readonly
Returns the value of attribute fine.
-
#frequency ⇒ Object
readonly
Returns the value of attribute frequency.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#interest ⇒ Object
readonly
Returns the value of attribute interest.
-
#max_installments ⇒ Object
readonly
Returns the value of attribute max_installments.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#methods ⇒ Object
readonly
Returns the value of attribute methods.
-
#products ⇒ Object
readonly
Returns the value of attribute products.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#up_sell_product_id ⇒ Object
readonly
Returns the value of attribute up_sell_product_id.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #dev_mode? ⇒ Boolean
-
#initialize(data) ⇒ Checkouts
constructor
A new instance of Checkouts.
Constructor Details
#initialize(data) ⇒ Checkouts
Returns a new instance of Checkouts.
31 32 33 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 31 def initialize(data) fill(data) end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def amount @amount end |
#coupons ⇒ Object
Returns the value of attribute coupons.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def coupons @coupons end |
#created_at ⇒ Object
Returns the value of attribute created_at.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def created_at @created_at end |
#custom_metadata ⇒ Object
Returns the value of attribute custom_metadata.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def @custom_metadata end |
#customer ⇒ Object
Returns the value of attribute customer.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def customer @customer end |
#dev_mode ⇒ Object
Returns the value of attribute dev_mode.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def dev_mode @dev_mode end |
#due_date ⇒ Object
Returns the value of attribute due_date.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def due_date @due_date end |
#external_id ⇒ Object
Returns the value of attribute external_id.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def external_id @external_id end |
#fine ⇒ Object
Returns the value of attribute fine.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def fine @fine end |
#frequency ⇒ Object
Returns the value of attribute frequency.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def frequency @frequency end |
#id ⇒ Object
Returns the value of attribute id.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def id @id end |
#interest ⇒ Object
Returns the value of attribute interest.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def interest @interest end |
#max_installments ⇒ Object
Returns the value of attribute max_installments.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def max_installments @max_installments end |
#metadata ⇒ Object
Returns the value of attribute metadata.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def @metadata end |
#methods ⇒ Object
Returns the value of attribute methods.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def methods @methods end |
#products ⇒ Object
Returns the value of attribute products.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def products @products end |
#status ⇒ Object
Returns the value of attribute status.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def status @status end |
#up_sell_product_id ⇒ Object
Returns the value of attribute up_sell_product_id.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def up_sell_product_id @up_sell_product_id end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def updated_at @updated_at end |
#url ⇒ Object
Returns the value of attribute url.
21 22 23 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 21 def url @url end |
Instance Method Details
#dev_mode? ⇒ Boolean
35 36 37 |
# File 'lib/abacate_pay/resources/checkouts.rb', line 35 def dev_mode? @dev_mode end |