Class: Stripe::V2::Core::Account

Inherits:
APIResource show all
Defined in:
lib/stripe/resources/v2/core/account.rb

Overview

A V2 Account is a representation of a company or individual that a Stripe user does business with. Accounts contain the contact details, Legal Entity information, and configuration required to enable the Account for use across Stripe products.

Defined Under Namespace

Classes: Configuration, Defaults, FutureRequirements, Identity, Requirements

Constant Summary collapse

OBJECT_NAME =
"v2.core.account"

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from APIResource

#save_with_parent

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods inherited from APIResource

class_name, custom_method, #refresh, #request_stripe_object, resource_url, #resource_url, retrieve, save_nested_resource

Methods included from APIOperations::Request

included

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#applied_configurationsObject (readonly)

The configurations that have been applied to this account.



3507
3508
3509
# File 'lib/stripe/resources/v2/core/account.rb', line 3507

def applied_configurations
  @applied_configurations
end

#closedObject (readonly)

Indicates whether the account has been closed.



3509
3510
3511
# File 'lib/stripe/resources/v2/core/account.rb', line 3509

def closed
  @closed
end

#configurationObject (readonly)

An Account represents a company, individual, or other entity that a user interacts with. Accounts store identity information and one or more configurations that enable product-specific capabilities. You can assign configurations at creation or add them later.



3511
3512
3513
# File 'lib/stripe/resources/v2/core/account.rb', line 3511

def configuration
  @configuration
end

#contact_emailObject (readonly)

The default contact email address for the Account. Required when configuring the account as a merchant or recipient.



3513
3514
3515
# File 'lib/stripe/resources/v2/core/account.rb', line 3513

def contact_email
  @contact_email
end

#createdObject (readonly)

Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.



3515
3516
3517
# File 'lib/stripe/resources/v2/core/account.rb', line 3515

def created
  @created
end

#dashboardObject (readonly)

A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.



3517
3518
3519
# File 'lib/stripe/resources/v2/core/account.rb', line 3517

def dashboard
  @dashboard
end

#defaultsObject (readonly)

Default values for settings shared across Account configurations.



3519
3520
3521
# File 'lib/stripe/resources/v2/core/account.rb', line 3519

def defaults
  @defaults
end

#display_nameObject (readonly)

A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.



3521
3522
3523
# File 'lib/stripe/resources/v2/core/account.rb', line 3521

def display_name
  @display_name
end

#future_requirementsObject (readonly)

Information about the future requirements for the Account that will eventually come into effect, including what information needs to be collected, and by when.



3523
3524
3525
# File 'lib/stripe/resources/v2/core/account.rb', line 3523

def future_requirements
  @future_requirements
end

#idObject (readonly)

Unique identifier for the Account.



3525
3526
3527
# File 'lib/stripe/resources/v2/core/account.rb', line 3525

def id
  @id
end

#identityObject (readonly)

Information about the company, individual, and business represented by the Account.



3527
3528
3529
# File 'lib/stripe/resources/v2/core/account.rb', line 3527

def identity
  @identity
end

#livemodeObject (readonly)

Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.



3535
3536
3537
# File 'lib/stripe/resources/v2/core/account.rb', line 3535

def livemode
  @livemode
end

#metadataObject (readonly)

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.



3529
3530
3531
# File 'lib/stripe/resources/v2/core/account.rb', line 3529

def 
  
end

#objectObject (readonly)

String representing the object’s type. Objects of the same type share the same value of the object field.



3531
3532
3533
# File 'lib/stripe/resources/v2/core/account.rb', line 3531

def object
  @object
end

#requirementsObject (readonly)

Information about the active requirements for the Account, including what information needs to be collected, and by when.



3533
3534
3535
# File 'lib/stripe/resources/v2/core/account.rb', line 3533

def requirements
  @requirements
end

Class Method Details

.field_remappingsObject



3547
3548
3549
# File 'lib/stripe/resources/v2/core/account.rb', line 3547

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



3537
3538
3539
3540
3541
3542
3543
3544
3545
# File 'lib/stripe/resources/v2/core/account.rb', line 3537

def self.inner_class_types
  @inner_class_types = {
    configuration: Configuration,
    defaults: Defaults,
    future_requirements: FutureRequirements,
    identity: Identity,
    requirements: Requirements,
  }
end

.object_nameObject



10
11
12
# File 'lib/stripe/resources/v2/core/account.rb', line 10

def self.object_name
  "v2.core.account"
end