Class: Stripe::ChargeCaptureParams::PaymentDetails::LodgingDatum::Host

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



1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
# File 'lib/stripe/params/charge_capture_params.rb', line 1452

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.



1436
1437
1438
# File 'lib/stripe/params/charge_capture_params.rb', line 1436

def address
  @address
end

#country_of_domicileObject

Host’s country of domicile.



1438
1439
1440
# File 'lib/stripe/params/charge_capture_params.rb', line 1438

def country_of_domicile
  @country_of_domicile
end

#host_referenceObject

Reference number for the host.



1440
1441
1442
# File 'lib/stripe/params/charge_capture_params.rb', line 1440

def host_reference
  @host_reference
end

#host_typeObject

Type of host.



1442
1443
1444
# File 'lib/stripe/params/charge_capture_params.rb', line 1442

def host_type
  @host_type
end

#nameObject

Name of the lodging property or host.



1444
1445
1446
# File 'lib/stripe/params/charge_capture_params.rb', line 1444

def name
  @name
end

#number_of_reservationsObject

Total number of reservations for the host.



1446
1447
1448
# File 'lib/stripe/params/charge_capture_params.rb', line 1446

def number_of_reservations
  @number_of_reservations
end

#property_phone_numberObject

Property phone number.



1448
1449
1450
# File 'lib/stripe/params/charge_capture_params.rb', line 1448

def property_phone_number
  @property_phone_number
end

#registered_atObject

Host’s registration date.



1450
1451
1452
# File 'lib/stripe/params/charge_capture_params.rb', line 1450

def registered_at
  @registered_at
end