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](stripe.com/docs/connect/required-verification-information).

Defined Under Namespace

Classes: ListParams, 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

#==, #[], #[]=, 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.



57
58
59
# File 'lib/stripe/resources/country_spec.rb', line 57

def default_currency
  @default_currency
end

#idObject (readonly)

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



59
60
61
# File 'lib/stripe/resources/country_spec.rb', line 59

def id
  @id
end

#objectObject (readonly)

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



61
62
63
# File 'lib/stripe/resources/country_spec.rb', line 61

def object
  @object
end

#supported_bank_account_currenciesObject (readonly)

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



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

def 
  @supported_bank_account_currencies
end

#supported_payment_currenciesObject (readonly)

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



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

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).



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

def supported_payment_methods
  @supported_payment_methods
end

#supported_transfer_countriesObject (readonly)

Countries that can accept transfers from the specified country.



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

def supported_transfer_countries
  @supported_transfer_countries
end

#verification_fieldsObject (readonly)

Attribute for field verification_fields



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

def verification_fields
  @verification_fields
end

Class Method Details

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

Lists all Country Spec objects available in the API.



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

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