Class: Dnsimple::Struct::Charge

Inherits:
Base
  • Object
show all
Defined in:
lib/dnsimple/struct/charge.rb

Defined Under Namespace

Classes: ChargeItem

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCharge

Returns a new instance of Charge.



54
55
56
57
# File 'lib/dnsimple/struct/charge.rb', line 54

def initialize(*)
  super
  @items ||= []
end

Instance Attribute Details

#balance_amountFloat

Returns The amount that was paid via wallet.

Returns:

  • (Float)

    The amount that was paid via wallet.



43
44
45
# File 'lib/dnsimple/struct/charge.rb', line 43

def balance_amount
  @balance_amount
end

#invoiced_atDateTime

Returns When the charge was invoiced.

Returns:

  • (DateTime)

    When the charge was invoiced.



49
50
51
# File 'lib/dnsimple/struct/charge.rb', line 49

def invoiced_at
  @invoiced_at
end

#itemsArray<ChargeItems>

Returns The charge items.

Returns:

  • (Array<ChargeItems>)

    The charge items.



52
53
54
# File 'lib/dnsimple/struct/charge.rb', line 52

def items
  @items
end

#referenceString

Returns The reference number of the invoice.

Returns:

  • (String)

    The reference number of the invoice.



37
38
39
# File 'lib/dnsimple/struct/charge.rb', line 37

def reference
  @reference
end

#stateString

Returns The state of the charge.

Returns:

  • (String)

    The state of the charge.



46
47
48
# File 'lib/dnsimple/struct/charge.rb', line 46

def state
  @state
end

#total_amountFloat

Returns The aggregate amount of all line items, that need to be paid.

Returns:

  • (Float)

    The aggregate amount of all line items, that need to be paid.



40
41
42
# File 'lib/dnsimple/struct/charge.rb', line 40

def total_amount
  @total_amount
end