Class: Stripe::CountrySpec

Inherits:
APIResource show all
Extended by:
APIOperations::List
Defined in:
lib/stripe/resources/country_spec.rb

Overview

Stripe needs to collect certain pieces of information about each account created. These requirements can differ depending on the account’s country. The Country Specs API makes these rules available to your integration.

You can also view the information from this API call as [an online guide](docs.stripe.com/docs/connect/required-verification-information).

Defined Under Namespace

Classes: VerificationFields

Constant Summary collapse

OBJECT_NAME =
"country_spec"

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 included from APIOperations::List

list

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

#default_currencyObject (readonly)

The default currency for this country. This applies to both payment methods and bank accounts.



63
64
65
# File 'lib/stripe/resources/country_spec.rb', line 63

def default_currency
  @default_currency
end

#idObject (readonly)

Unique identifier for the object. Represented as the ISO country code for this country.



65
66
67
# File 'lib/stripe/resources/country_spec.rb', line 65

def id
  @id
end

#objectObject (readonly)

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



67
68
69
# File 'lib/stripe/resources/country_spec.rb', line 67

def object
  @object
end

#supported_bank_account_currenciesObject (readonly)

Currencies that can be accepted in the specific country (for transfers).



69
70
71
# File 'lib/stripe/resources/country_spec.rb', line 69

def 
  
end

#supported_payment_currenciesObject (readonly)

Currencies that can be accepted in the specified country (for payments).



71
72
73
# File 'lib/stripe/resources/country_spec.rb', line 71

def supported_payment_currencies
  @supported_payment_currencies
end

#supported_payment_methodsObject (readonly)

Payment methods available in the specified country. You may need to enable some payment methods (e.g., [ACH](stripe.com/docs/ach)) on your account before they appear in this list. The ‘stripe` payment method refers to [charging through your platform](stripe.com/docs/connect/destination-charges).



73
74
75
# File 'lib/stripe/resources/country_spec.rb', line 73

def supported_payment_methods
  @supported_payment_methods
end

#supported_transfer_countriesObject (readonly)

Countries that can accept transfers from the specified country.



75
76
77
# File 'lib/stripe/resources/country_spec.rb', line 75

def supported_transfer_countries
  @supported_transfer_countries
end

#verification_fieldsObject (readonly)

Attribute for field verification_fields



77
78
79
# File 'lib/stripe/resources/country_spec.rb', line 77

def verification_fields
  @verification_fields
end

Class Method Details

.field_remappingsObject



88
89
90
# File 'lib/stripe/resources/country_spec.rb', line 88

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



84
85
86
# File 'lib/stripe/resources/country_spec.rb', line 84

def self.inner_class_types
  @inner_class_types = { verification_fields: VerificationFields }
end

.list(params = {}, opts = {}) ⇒ Object

Lists all Country Spec objects available in the API.



80
81
82
# File 'lib/stripe/resources/country_spec.rb', line 80

def self.list(params = {}, opts = {})
  request_stripe_object(method: :get, path: "/v1/country_specs", params: params, opts: opts)
end

.object_nameObject



15
16
17
# File 'lib/stripe/resources/country_spec.rb', line 15

def self.object_name
  "country_spec"
end