Class: Stripe::Checkout::SessionService::CreateParams::ShippingAddressCollection

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/checkout/session_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(allowed_countries: nil) ⇒ ShippingAddressCollection

Returns a new instance of ShippingAddressCollection.



1912
1913
1914
# File 'lib/stripe/services/checkout/session_service.rb', line 1912

def initialize(allowed_countries: nil)
  @allowed_countries = allowed_countries
end

Instance Attribute Details

#allowed_countriesObject

An array of two-letter ISO country codes representing which countries Checkout should provide as options for shipping locations.



1910
1911
1912
# File 'lib/stripe/services/checkout/session_service.rb', line 1910

def allowed_countries
  @allowed_countries
end