Class: GandiV5::Billing::Info

Inherits:
Object
  • Object
show all
Includes:
Data
Defined in:
lib/gandi_v5/billing/info.rb,
lib/gandi_v5/billing/info/prepaid.rb

Overview

Account’s information.

Defined Under Namespace

Classes: Prepaid

Instance Attribute Summary collapse

Method Summary

Methods included from Data

#from_gandi, included, #initialize, #to_gandi, #to_h, #values_at

Instance Attribute Details

#annual_balanceNumeric (readonly)

Returns amount of purchased over the past 12 months since the request.

Returns:

  • (Numeric)

    amount of purchased over the past 12 months since the request.



17
18
19
20
21
22
# File 'lib/gandi_v5/billing/info.rb', line 17

class Info
  include GandiV5::Data

  members :annual_balance, :grid, :outstanding_amount, :prepaid_monthly_invoice
  member :prepaid, converter: GandiV5::Billing::Info::Prepaid
end

#gridString (readonly)

Returns price rate that is applied depending on the amount purchased over the last 12 months.

Returns:

  • (String)

    price rate that is applied depending on the amount purchased over the last 12 months.



17
18
19
20
21
22
# File 'lib/gandi_v5/billing/info.rb', line 17

class Info
  include GandiV5::Data

  members :annual_balance, :grid, :outstanding_amount, :prepaid_monthly_invoice
  member :prepaid, converter: GandiV5::Billing::Info::Prepaid
end

#outstanding_amountNumeric (readonly)

Returns amount of outstanding orders (payment by terms) since the last invoice.

Returns:

  • (Numeric)

    amount of outstanding orders (payment by terms) since the last invoice.



17
18
19
20
21
22
# File 'lib/gandi_v5/billing/info.rb', line 17

class Info
  include GandiV5::Data

  members :annual_balance, :grid, :outstanding_amount, :prepaid_monthly_invoice
  member :prepaid, converter: GandiV5::Billing::Info::Prepaid
end

#prepaidnil, Gandiv5::Billing::Info::Prepaid (readonly)

Returns:

  • (nil, Gandiv5::Billing::Info::Prepaid)


17
18
19
20
21
22
# File 'lib/gandi_v5/billing/info.rb', line 17

class Info
  include GandiV5::Data

  members :annual_balance, :grid, :outstanding_amount, :prepaid_monthly_invoice
  member :prepaid, converter: GandiV5::Billing::Info::Prepaid
end

#prepaid_monthly_invoicenil, Boolean (readonly)

Returns whether orders are gathered into a single monthly invoice.

Returns:

  • (nil, Boolean)

    whether orders are gathered into a single monthly invoice.



17
18
19
20
21
22
# File 'lib/gandi_v5/billing/info.rb', line 17

class Info
  include GandiV5::Data

  members :annual_balance, :grid, :outstanding_amount, :prepaid_monthly_invoice
  member :prepaid, converter: GandiV5::Billing::Info::Prepaid
end