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



5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
# File 'lib/stripe/resources/payment_intent.rb', line 5653

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.



5641
5642
5643
# File 'lib/stripe/resources/payment_intent.rb', line 5641

def city
  @city
end

#countryObject

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



5643
5644
5645
# File 'lib/stripe/resources/payment_intent.rb', line 5643

def country
  @country
end

#line1Object

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



5645
5646
5647
# File 'lib/stripe/resources/payment_intent.rb', line 5645

def line1
  @line1
end

#line2Object

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



5647
5648
5649
# File 'lib/stripe/resources/payment_intent.rb', line 5647

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



5649
5650
5651
# File 'lib/stripe/resources/payment_intent.rb', line 5649

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



5651
5652
5653
# File 'lib/stripe/resources/payment_intent.rb', line 5651

def state
  @state
end