Class: Payrex::Entities::BillingStatement
- Inherits:
-
Object
- Object
- Payrex::Entities::BillingStatement
- Defined in:
- lib/entities/billing_statement.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#billing_statement_number ⇒ Object
readonly
Returns the value of attribute billing_statement_number.
-
#billing_statement_url ⇒ Object
readonly
Returns the value of attribute billing_statement_url.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#customer ⇒ Object
readonly
Returns the value of attribute customer.
-
#customer_id ⇒ Object
readonly
Returns the value of attribute customer_id.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#due_at ⇒ Object
readonly
Returns the value of attribute due_at.
-
#finalized_at ⇒ Object
readonly
Returns the value of attribute finalized_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#line_items ⇒ Object
readonly
Returns the value of attribute line_items.
-
#livemode ⇒ Object
readonly
Returns the value of attribute livemode.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#payment_intent ⇒ Object
readonly
Returns the value of attribute payment_intent.
-
#payment_settings ⇒ Object
readonly
Returns the value of attribute payment_settings.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(api_resource) ⇒ BillingStatement
constructor
A new instance of BillingStatement.
Constructor Details
#initialize(api_resource) ⇒ BillingStatement
Returns a new instance of BillingStatement.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/entities/billing_statement.rb', line 23 def initialize(api_resource) data = api_resource.data @id = data["id"] @amount = data["amount"] @currency = data["currency"] @customer_id = data["customer_id"] @description = data["description"] @due_at = data["due_at"] @finalized_at = data["finalized_at"] @billing_statement_number = data["billing_statement_number"] @billing_statement_url = data["billing_statement_url"] @line_items = data["line_items"] @livemode = data["livemode"] = data["metadata"] @payment_intent = data["payment_intent"] @status = data["status"] @payment_settings = data["payment_settings"] @customer = data["customer"] @created_at = data["created_at"] @updated_at = data["updated_at"] end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def amount @amount end |
#billing_statement_number ⇒ Object (readonly)
Returns the value of attribute billing_statement_number.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def billing_statement_number @billing_statement_number end |
#billing_statement_url ⇒ Object (readonly)
Returns the value of attribute billing_statement_url.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def billing_statement_url @billing_statement_url end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def created_at @created_at end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def currency @currency end |
#customer ⇒ Object (readonly)
Returns the value of attribute customer.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def customer @customer end |
#customer_id ⇒ Object (readonly)
Returns the value of attribute customer_id.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def customer_id @customer_id end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def description @description end |
#due_at ⇒ Object (readonly)
Returns the value of attribute due_at.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def due_at @due_at end |
#finalized_at ⇒ Object (readonly)
Returns the value of attribute finalized_at.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def finalized_at @finalized_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def id @id end |
#line_items ⇒ Object (readonly)
Returns the value of attribute line_items.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def line_items @line_items end |
#livemode ⇒ Object (readonly)
Returns the value of attribute livemode.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def livemode @livemode end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def end |
#payment_intent ⇒ Object (readonly)
Returns the value of attribute payment_intent.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def payment_intent @payment_intent end |
#payment_settings ⇒ Object (readonly)
Returns the value of attribute payment_settings.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def payment_settings @payment_settings end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def status @status end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/entities/billing_statement.rb', line 4 def updated_at @updated_at end |