Class: Stripe::PaymentIntentService::CreateParams::PaymentDetails::EventDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_intent_service.rb

Defined Under Namespace

Classes: Address, Affiliate, Delivery

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(access_controlled_venue: nil, address: nil, affiliate: nil, company: nil, delivery: nil, ends_at: nil, genre: nil, name: nil, starts_at: nil) ⇒ EventDetails

Returns a new instance of EventDetails.



423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
# File 'lib/stripe/services/payment_intent_service.rb', line 423

def initialize(
  access_controlled_venue: nil,
  address: nil,
  affiliate: nil,
  company: nil,
  delivery: nil,
  ends_at: nil,
  genre: nil,
  name: nil,
  starts_at: nil
)
  @access_controlled_venue = access_controlled_venue
  @address = address
  @affiliate = affiliate
  @company = company
  @delivery = delivery
  @ends_at = ends_at
  @genre = genre
  @name = name
  @starts_at = starts_at
end

Instance Attribute Details

#access_controlled_venueObject

Indicates if the tickets are digitally checked when entering the venue.



405
406
407
# File 'lib/stripe/services/payment_intent_service.rb', line 405

def access_controlled_venue
  @access_controlled_venue
end

#addressObject

The event location’s address.



407
408
409
# File 'lib/stripe/services/payment_intent_service.rb', line 407

def address
  @address
end

#affiliateObject

Affiliate details for this purchase.



409
410
411
# File 'lib/stripe/services/payment_intent_service.rb', line 409

def affiliate
  @affiliate
end

#companyObject

The name of the company



411
412
413
# File 'lib/stripe/services/payment_intent_service.rb', line 411

def company
  @company
end

#deliveryObject

Delivery details for this purchase.



413
414
415
# File 'lib/stripe/services/payment_intent_service.rb', line 413

def delivery
  @delivery
end

#ends_atObject

Event end time. Measured in seconds since the Unix epoch.



415
416
417
# File 'lib/stripe/services/payment_intent_service.rb', line 415

def ends_at
  @ends_at
end

#genreObject

Type of the event entertainment (concert, sports event etc)



417
418
419
# File 'lib/stripe/services/payment_intent_service.rb', line 417

def genre
  @genre
end

#nameObject

The name of the event.



419
420
421
# File 'lib/stripe/services/payment_intent_service.rb', line 419

def name
  @name
end

#starts_atObject

Event start time. Measured in seconds since the Unix epoch.



421
422
423
# File 'lib/stripe/services/payment_intent_service.rb', line 421

def starts_at
  @starts_at
end