Class: Stripe::Checkout::Session::CreateParams::ShippingAddressCollection

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/checkout/session.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.



2803
2804
2805
# File 'lib/stripe/resources/checkout/session.rb', line 2803

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.



2801
2802
2803
# File 'lib/stripe/resources/checkout/session.rb', line 2801

def allowed_countries
  @allowed_countries
end