Class: Recurly::Resources::Account

Inherits:
Recurly::Resource show all
Defined in:
lib/recurly/resources/account.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

#addressAddress

Returns:



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

define_attribute :address, :Address

#bill_toString

Returns An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

Returns:

  • (String)

    An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.



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

define_attribute :bill_to, String

#billing_infoBillingInfo

Returns:



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

define_attribute :billing_info, :BillingInfo

#cc_emailsString

Returns Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.

Returns:

  • (String)

    Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.



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

define_attribute :cc_emails, String

#codeString

Returns The unique identifier of the account. This cannot be changed once the account is created.

Returns:

  • (String)

    The unique identifier of the account. This cannot be changed once the account is created.



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

define_attribute :code, String

#companyString

Returns:

  • (String)


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

define_attribute :company, String

#created_atDateTime

Returns When the account was created.

Returns:

  • (DateTime)

    When the account was created.



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

define_attribute :created_at, DateTime

#custom_fieldsArray[CustomField]

Returns The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.

Returns:

  • (Array[CustomField])

    The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.



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

define_attribute :custom_fields, Array, { :item_type => :CustomField }

#deleted_atDateTime

Returns If present, when the account was last marked inactive.

Returns:

  • (DateTime)

    If present, when the account was last marked inactive.



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

define_attribute :deleted_at, DateTime

#dunning_campaign_idString

Returns Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

Returns:

  • (String)

    Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.



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

define_attribute :dunning_campaign_id, String

#emailString

Returns The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.

Returns:

  • (String)

    The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.



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

define_attribute :email, String

#entity_use_codeString

Returns The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive.

Returns:

  • (String)

    The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive.



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

define_attribute :entity_use_code, String

#exemption_certificateString

Returns The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.

Returns:

  • (String)

    The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.



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

define_attribute :exemption_certificate, String

#external_accountsArray[ExternalAccount]

Returns The external accounts belonging to this account.

Returns:

  • (Array[ExternalAccount])

    The external accounts belonging to this account



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

define_attribute :external_accounts, Array, { :item_type => :ExternalAccount }

#first_nameString

Returns:

  • (String)


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

define_attribute :first_name, String

#has_active_subscriptionBoolean

Returns Indicates if the account has an active subscription.

Returns:

  • (Boolean)

    Indicates if the account has an active subscription.



71
# File 'lib/recurly/resources/account.rb', line 71

define_attribute :has_active_subscription, :Boolean

#has_canceled_subscriptionBoolean

Returns Indicates if the account has a canceled subscription.

Returns:

  • (Boolean)

    Indicates if the account has a canceled subscription.



75
# File 'lib/recurly/resources/account.rb', line 75

define_attribute :has_canceled_subscription, :Boolean

#has_future_subscriptionBoolean

Returns Indicates if the account has a future subscription.

Returns:

  • (Boolean)

    Indicates if the account has a future subscription.



79
# File 'lib/recurly/resources/account.rb', line 79

define_attribute :has_future_subscription, :Boolean

#has_live_subscriptionBoolean

Returns Indicates if the account has a subscription that is either active, canceled, future, or paused.

Returns:

  • (Boolean)

    Indicates if the account has a subscription that is either active, canceled, future, or paused.



83
# File 'lib/recurly/resources/account.rb', line 83

define_attribute :has_live_subscription, :Boolean

#has_past_due_invoiceBoolean

Returns Indicates if the account has a past due invoice.

Returns:

  • (Boolean)

    Indicates if the account has a past due invoice.



87
# File 'lib/recurly/resources/account.rb', line 87

define_attribute :has_past_due_invoice, :Boolean

#has_paused_subscriptionBoolean

Returns Indicates if the account has a paused subscription.

Returns:

  • (Boolean)

    Indicates if the account has a paused subscription.



91
# File 'lib/recurly/resources/account.rb', line 91

define_attribute :has_paused_subscription, :Boolean

#hosted_login_tokenString

Returns The unique token for automatically logging the account in to the hosted management pages. You may automatically log the user into their hosted management pages by directing the user to: `

Returns: