Class: Stripe::PaymentIntentService::CreateParams::Shipping::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.



2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
# File 'lib/stripe/services/payment_intent_service.rb', line 2199

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.



2187
2188
2189
# File 'lib/stripe/services/payment_intent_service.rb', line 2187

def city
  @city
end

#countryObject

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



2189
2190
2191
# File 'lib/stripe/services/payment_intent_service.rb', line 2189

def country
  @country
end

#line1Object

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



2191
2192
2193
# File 'lib/stripe/services/payment_intent_service.rb', line 2191

def line1
  @line1
end

#line2Object

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



2193
2194
2195
# File 'lib/stripe/services/payment_intent_service.rb', line 2193

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



2195
2196
2197
# File 'lib/stripe/services/payment_intent_service.rb', line 2195

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



2197
2198
2199
# File 'lib/stripe/services/payment_intent_service.rb', line 2197

def state
  @state
end