Class: Stripe::ChargeUpdateParams::PaymentDetails::LodgingDatum::Host

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

Defined Under Namespace

Classes: Address

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(address: nil, country_of_domicile: nil, host_reference: nil, host_type: nil, name: nil, number_of_reservations: nil, property_phone_number: nil, registered_at: nil) ⇒ Host

Returns a new instance of Host.



1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
# File 'lib/stripe/params/charge_update_params.rb', line 1368

def initialize(
  address: nil,
  country_of_domicile: nil,
  host_reference: nil,
  host_type: nil,
  name: nil,
  number_of_reservations: nil,
  property_phone_number: nil,
  registered_at: nil
)
  @address = address
  @country_of_domicile = country_of_domicile
  @host_reference = host_reference
  @host_type = host_type
  @name = name
  @number_of_reservations = number_of_reservations
  @property_phone_number = property_phone_number
  @registered_at = registered_at
end

Instance Attribute Details

#addressObject

Address of the host.



1352
1353
1354
# File 'lib/stripe/params/charge_update_params.rb', line 1352

def address
  @address
end

#country_of_domicileObject

Host’s country of domicile.



1354
1355
1356
# File 'lib/stripe/params/charge_update_params.rb', line 1354

def country_of_domicile
  @country_of_domicile
end

#host_referenceObject

Reference number for the host.



1356
1357
1358
# File 'lib/stripe/params/charge_update_params.rb', line 1356

def host_reference
  @host_reference
end

#host_typeObject

Type of host.



1358
1359
1360
# File 'lib/stripe/params/charge_update_params.rb', line 1358

def host_type
  @host_type
end

#nameObject

Name of the lodging property or host.



1360
1361
1362
# File 'lib/stripe/params/charge_update_params.rb', line 1360

def name
  @name
end

#number_of_reservationsObject

Total number of reservations for the host.



1362
1363
1364
# File 'lib/stripe/params/charge_update_params.rb', line 1362

def number_of_reservations
  @number_of_reservations
end

#property_phone_numberObject

Property phone number.



1364
1365
1366
# File 'lib/stripe/params/charge_update_params.rb', line 1364

def property_phone_number
  @property_phone_number
end

#registered_atObject

Host’s registration date.



1366
1367
1368
# File 'lib/stripe/params/charge_update_params.rb', line 1366

def registered_at
  @registered_at
end