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.



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

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.



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

def balance_amount
  @balance_amount
end

#invoiced_atDateTime

Returns When the charge was invoiced.

Returns:

  • (DateTime)

    When the charge was invoiced.



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

def invoiced_at
  @invoiced_at
end

#itemsArray<ChargeItems>

Returns The charge items.

Returns:

  • (Array<ChargeItems>)

    The charge items.



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

def items
  @items
end

#referenceString

Returns The reference number of the invoice.

Returns:

  • (String)

    The reference number of the invoice.



35
36
37
# File 'lib/dnsimple/struct/charge.rb', line 35

def reference
  @reference
end

#stateString

Returns The state of the charge.

Returns:

  • (String)

    The state of the charge.



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

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.



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

def total_amount
  @total_amount
end