Class: Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card::StatementDetails::Address

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



13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
# File 'lib/stripe/resources/payment_intent.rb', line 13914

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.



13902
13903
13904
# File 'lib/stripe/resources/payment_intent.rb', line 13902

def city
  @city
end

#countryObject

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



13904
13905
13906
# File 'lib/stripe/resources/payment_intent.rb', line 13904

def country
  @country
end

#line1Object

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



13906
13907
13908
# File 'lib/stripe/resources/payment_intent.rb', line 13906

def line1
  @line1
end

#line2Object

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



13908
13909
13910
# File 'lib/stripe/resources/payment_intent.rb', line 13908

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



13910
13911
13912
# File 'lib/stripe/resources/payment_intent.rb', line 13910

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



13912
13913
13914
# File 'lib/stripe/resources/payment_intent.rb', line 13912

def state
  @state
end