Class: Stripe::PaymentIntent::CaptureParams::PaymentDetails::EventDetails

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



8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
# File 'lib/stripe/resources/payment_intent.rb', line 8876

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.



8858
8859
8860
# File 'lib/stripe/resources/payment_intent.rb', line 8858

def access_controlled_venue
  @access_controlled_venue
end

#addressObject

The event location’s address.



8860
8861
8862
# File 'lib/stripe/resources/payment_intent.rb', line 8860

def address
  @address
end

#affiliateObject

Affiliate details for this purchase.



8862
8863
8864
# File 'lib/stripe/resources/payment_intent.rb', line 8862

def affiliate
  @affiliate
end

#companyObject

The name of the company



8864
8865
8866
# File 'lib/stripe/resources/payment_intent.rb', line 8864

def company
  @company
end

#deliveryObject

Delivery details for this purchase.



8866
8867
8868
# File 'lib/stripe/resources/payment_intent.rb', line 8866

def delivery
  @delivery
end

#ends_atObject

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



8868
8869
8870
# File 'lib/stripe/resources/payment_intent.rb', line 8868

def ends_at
  @ends_at
end

#genreObject

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



8870
8871
8872
# File 'lib/stripe/resources/payment_intent.rb', line 8870

def genre
  @genre
end

#nameObject

The name of the event.



8872
8873
8874
# File 'lib/stripe/resources/payment_intent.rb', line 8872

def name
  @name
end

#starts_atObject

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



8874
8875
8876
# File 'lib/stripe/resources/payment_intent.rb', line 8874

def starts_at
  @starts_at
end