Class: Stripe::TokenCreateParams::Account::Individual::AddressKanji

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/token_create_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, town: nil) ⇒ AddressKanji

Returns a new instance of AddressKanji.



445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
# File 'lib/stripe/params/token_create_params.rb', line 445

def initialize(
  city: nil,
  country: nil,
  line1: nil,
  line2: nil,
  postal_code: nil,
  state: nil,
  town: nil
)
  @city = city
  @country = country
  @line1 = line1
  @line2 = line2
  @postal_code = postal_code
  @state = state
  @town = town
end

Instance Attribute Details

#cityObject

City or ward.



431
432
433
# File 'lib/stripe/params/token_create_params.rb', line 431

def city
  @city
end

#countryObject

Two-letter country code (ISO 3166-1 alpha-2).



433
434
435
# File 'lib/stripe/params/token_create_params.rb', line 433

def country
  @country
end

#line1Object

Block or building number.



435
436
437
# File 'lib/stripe/params/token_create_params.rb', line 435

def line1
  @line1
end

#line2Object

Building details.



437
438
439
# File 'lib/stripe/params/token_create_params.rb', line 437

def line2
  @line2
end

#postal_codeObject

Postal code.



439
440
441
# File 'lib/stripe/params/token_create_params.rb', line 439

def postal_code
  @postal_code
end

#stateObject

Prefecture.



441
442
443
# File 'lib/stripe/params/token_create_params.rb', line 441

def state
  @state
end

#townObject

Town or cho-me.



443
444
445
# File 'lib/stripe/params/token_create_params.rb', line 443

def town
  @town
end