Class: Stripe::PaymentIntentService::ConfirmParams::PaymentDetails::EventDetails::Address

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) ⇒ Address

Returns a new instance of Address.



8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
# File 'lib/stripe/services/payment_intent_service.rb', line 8066

def initialize(
  city: nil,
  country: nil,
  line1: nil,
  line2: nil,
  postal_code: nil,
  state: nil
)
  @city = city
  @country = country
  @line1 = line1
  @line2 = line2
  @postal_code = postal_code
  @state = state
end

Instance Attribute Details

#cityObject

City, district, suburb, town, or village.



8054
8055
8056
# File 'lib/stripe/services/payment_intent_service.rb', line 8054

def city
  @city
end

#countryObject

Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).



8056
8057
8058
# File 'lib/stripe/services/payment_intent_service.rb', line 8056

def country
  @country
end

#line1Object

Address line 1 (e.g., street, PO Box, or company name).



8058
8059
8060
# File 'lib/stripe/services/payment_intent_service.rb', line 8058

def line1
  @line1
end

#line2Object

Address line 2 (e.g., apartment, suite, unit, or building).



8060
8061
8062
# File 'lib/stripe/services/payment_intent_service.rb', line 8060

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



8062
8063
8064
# File 'lib/stripe/services/payment_intent_service.rb', line 8062

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



8064
8065
8066
# File 'lib/stripe/services/payment_intent_service.rb', line 8064

def state
  @state
end