Class: Recurly::Resources::BusinessEntity

Inherits:
Recurly::Resource show all
Defined in:
lib/recurly/resources/business_entity.rb

Instance Attribute Summary collapse

Attributes inherited from Recurly::Resource

#attributes

Method Summary

Methods inherited from Recurly::Resource

#==, #get_response, #inspect, #requires_client?, #to_json, #to_s

Methods included from Schema::SchemaFactory

#schema

Methods included from Schema::ResourceCaster

#cast

Methods included from Schema::SchemaValidator

#get_did_you_mean, #validate!, #validate_attribute!

Instance Attribute Details

#codeString

Returns The entity code of the business entity.

Returns:

  • (String)

    The entity code of the business entity.



11
# File 'lib/recurly/resources/business_entity.rb', line 11

define_attribute :code, String

#created_atDateTime

Returns Created at.

Returns:

  • (DateTime)

    Created at



15
# File 'lib/recurly/resources/business_entity.rb', line 15

define_attribute :created_at, DateTime

#default_liability_gl_account_idString

Returns The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.

Returns:

  • (String)

    The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.



19
# File 'lib/recurly/resources/business_entity.rb', line 19

define_attribute :default_liability_gl_account_id, String

#default_registration_numberString

Returns Registration number for the customer used on the invoice.

Returns:

  • (String)

    Registration number for the customer used on the invoice.



23
# File 'lib/recurly/resources/business_entity.rb', line 23

define_attribute :default_registration_number, String

#default_revenue_gl_account_idString

Returns The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.

Returns:

  • (String)

    The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.



27
# File 'lib/recurly/resources/business_entity.rb', line 27

define_attribute :default_revenue_gl_account_id, String

#default_vat_numberString

Returns VAT number for the customer used on the invoice.

Returns:

  • (String)

    VAT number for the customer used on the invoice.



31
# File 'lib/recurly/resources/business_entity.rb', line 31

define_attribute :default_vat_number, String

#destination_tax_address_sourceString

Returns The source of the address that will be used as the destinaion in determining taxes. Available only when the site is on an Elite plan. A value of “destination” refers to the “Customer tax address”. A value of “origin” refers to the “Business entity tax address”.

Returns:

  • (String)

    The source of the address that will be used as the destinaion in determining taxes. Available only when the site is on an Elite plan. A value of “destination” refers to the “Customer tax address”. A value of “origin” refers to the “Business entity tax address”.



35
# File 'lib/recurly/resources/business_entity.rb', line 35

define_attribute :destination_tax_address_source, String

#idString

Returns Business entity ID.

Returns:

  • (String)

    Business entity ID



39
# File 'lib/recurly/resources/business_entity.rb', line 39

define_attribute :id, String

#invoice_display_addressAddress

Returns Address information for the business entity that will appear on the invoice.

Returns:

  • (Address)

    Address information for the business entity that will appear on the invoice.



43
# File 'lib/recurly/resources/business_entity.rb', line 43

define_attribute :invoice_display_address, :Address

#nameString

Returns This name describes your business entity and will appear on the invoice.

Returns:

  • (String)

    This name describes your business entity and will appear on the invoice.



47
# File 'lib/recurly/resources/business_entity.rb', line 47

define_attribute :name, String

#objectString

Returns Object type.

Returns:

  • (String)

    Object type



51
# File 'lib/recurly/resources/business_entity.rb', line 51

define_attribute :object, String

#origin_tax_address_sourceString

Returns The source of the address that will be used as the origin in determining taxes. Available only when the site is on an Elite plan. A value of “origin” refers to the “Business entity tax address”. A value of “destination” refers to the “Customer tax address”.

Returns:

  • (String)

    The source of the address that will be used as the origin in determining taxes. Available only when the site is on an Elite plan. A value of “origin” refers to the “Business entity tax address”. A value of “destination” refers to the “Customer tax address”.



55
# File 'lib/recurly/resources/business_entity.rb', line 55

define_attribute :origin_tax_address_source, String

#subscriber_location_countriesArray[String]

Returns List of countries for which the business entity will be used.

Returns:

  • (Array[String])

    List of countries for which the business entity will be used.



59
# File 'lib/recurly/resources/business_entity.rb', line 59

define_attribute :subscriber_location_countries, Array, { :item_type => String }

#tax_addressAddress

Returns Address information for the business entity that will be used for calculating taxes.

Returns:

  • (Address)

    Address information for the business entity that will be used for calculating taxes.



63
# File 'lib/recurly/resources/business_entity.rb', line 63

define_attribute :tax_address, :Address

#updated_atDateTime

Returns Last updated at.

Returns:

  • (DateTime)

    Last updated at



67
# File 'lib/recurly/resources/business_entity.rb', line 67

define_attribute :updated_at, DateTime