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



12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
# File 'lib/stripe/services/payment_intent_service.rb', line 12198

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.



12186
12187
12188
# File 'lib/stripe/services/payment_intent_service.rb', line 12186

def city
  @city
end

#countryObject

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



12188
12189
12190
# File 'lib/stripe/services/payment_intent_service.rb', line 12188

def country
  @country
end

#line1Object

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



12190
12191
12192
# File 'lib/stripe/services/payment_intent_service.rb', line 12190

def line1
  @line1
end

#line2Object

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



12192
12193
12194
# File 'lib/stripe/services/payment_intent_service.rb', line 12192

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



12194
12195
12196
# File 'lib/stripe/services/payment_intent_service.rb', line 12194

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



12196
12197
12198
# File 'lib/stripe/services/payment_intent_service.rb', line 12196

def state
  @state
end