Class: Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Klarna::SupplementaryPurchaseData::FerryReservationDetail::Departure::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(city: nil, country: nil, postal_code: nil, region: nil, street_address: nil, street_address2: nil) ⇒ Address

Returns a new instance of Address.



3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
# File 'lib/stripe/params/payment_intent_create_params.rb', line 3832

def initialize(
  city: nil,
  country: nil,
  postal_code: nil,
  region: nil,
  street_address: nil,
  street_address2: nil
)
  @city = city
  @country = country
  @postal_code = postal_code
  @region = region
  @street_address = street_address
  @street_address2 = street_address2
end

Instance Attribute Details

#cityObject

The city or town.



3820
3821
3822
# File 'lib/stripe/params/payment_intent_create_params.rb', line 3820

def city
  @city
end

#countryObject

The country in ISO 3166-1 alpha-2 format.



3822
3823
3824
# File 'lib/stripe/params/payment_intent_create_params.rb', line 3822

def country
  @country
end

#postal_codeObject

The postal code formatted according to country.



3824
3825
3826
# File 'lib/stripe/params/payment_intent_create_params.rb', line 3824

def postal_code
  @postal_code
end

#regionObject

The state, county, province, or region formatted according to country.



3826
3827
3828
# File 'lib/stripe/params/payment_intent_create_params.rb', line 3826

def region
  @region
end

#street_addressObject

Line 1 of the street address.



3828
3829
3830
# File 'lib/stripe/params/payment_intent_create_params.rb', line 3828

def street_address
  @street_address
end

#street_address2Object

Line 2 of the street address.



3830
3831
3832
# File 'lib/stripe/params/payment_intent_create_params.rb', line 3830

def street_address2
  @street_address2
end