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.



609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
# File 'lib/stripe/services/payment_intent_service.rb', line 609

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.



591
592
593
# File 'lib/stripe/services/payment_intent_service.rb', line 591

def access_controlled_venue
  @access_controlled_venue
end

#addressObject

The event location’s address.



593
594
595
# File 'lib/stripe/services/payment_intent_service.rb', line 593

def address
  @address
end

#affiliateObject

Affiliate details for this purchase.



595
596
597
# File 'lib/stripe/services/payment_intent_service.rb', line 595

def affiliate
  @affiliate
end

#companyObject

The name of the company



597
598
599
# File 'lib/stripe/services/payment_intent_service.rb', line 597

def company
  @company
end

#deliveryObject

Delivery details for this purchase.



599
600
601
# File 'lib/stripe/services/payment_intent_service.rb', line 599

def delivery
  @delivery
end

#ends_atObject

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



601
602
603
# File 'lib/stripe/services/payment_intent_service.rb', line 601

def ends_at
  @ends_at
end

#genreObject

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



603
604
605
# File 'lib/stripe/services/payment_intent_service.rb', line 603

def genre
  @genre
end

#nameObject

The name of the event.



605
606
607
# File 'lib/stripe/services/payment_intent_service.rb', line 605

def name
  @name
end

#starts_atObject

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



607
608
609
# File 'lib/stripe/services/payment_intent_service.rb', line 607

def starts_at
  @starts_at
end