Class: Stripe::PaymentIntentUpdateParams::Shipping::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #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.



6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
# File 'lib/stripe/params/payment_intent_update_params.rb', line 6097

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.



6085
6086
6087
# File 'lib/stripe/params/payment_intent_update_params.rb', line 6085

def city
  @city
end

#countryObject

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



6087
6088
6089
# File 'lib/stripe/params/payment_intent_update_params.rb', line 6087

def country
  @country
end

#line1Object

Address line 1, such as the street, PO Box, or company name.



6089
6090
6091
# File 'lib/stripe/params/payment_intent_update_params.rb', line 6089

def line1
  @line1
end

#line2Object

Address line 2, such as the apartment, suite, unit, or building.



6091
6092
6093
# File 'lib/stripe/params/payment_intent_update_params.rb', line 6091

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



6093
6094
6095
# File 'lib/stripe/params/payment_intent_update_params.rb', line 6093

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region ([ISO 3166-2](en.wikipedia.org/wiki/ISO_3166-2)).



6095
6096
6097
# File 'lib/stripe/params/payment_intent_update_params.rb', line 6095

def state
  @state
end