Class: Payrex::Entities::BillingStatement

Inherits:
Object
  • Object
show all
Defined in:
lib/entities/billing_statement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject (readonly)

Returns the value of attribute amount.



4
5
6
# File 'lib/entities/billing_statement.rb', line 4

def amount
  @amount
end

#billing_statement_numberObject (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_urlObject (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_atObject (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

#currencyObject (readonly)

Returns the value of attribute currency.



4
5
6
# File 'lib/entities/billing_statement.rb', line 4

def currency
  @currency
end

#customerObject (readonly)

Returns the value of attribute customer.



4
5
6
# File 'lib/entities/billing_statement.rb', line 4

def customer
  @customer
end

#customer_idObject (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

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/entities/billing_statement.rb', line 4

def description
  @description
end

#due_atObject (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_atObject (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

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/entities/billing_statement.rb', line 4

def id
  @id
end

#line_itemsObject (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

#livemodeObject (readonly)

Returns the value of attribute livemode.



4
5
6
# File 'lib/entities/billing_statement.rb', line 4

def livemode
  @livemode
end

#metadataObject (readonly)

Returns the value of attribute metadata.



4
5
6
# File 'lib/entities/billing_statement.rb', line 4

def 
  
end

#payment_intentObject (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_settingsObject (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

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/entities/billing_statement.rb', line 4

def status
  @status
end

#updated_atObject (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