Class: Stripe::GiftCards::Transaction::CreateParams::CreatedBy

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/gift_cards/transaction.rb

Defined Under Namespace

Classes: Payment

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(payment: nil, type: nil) ⇒ CreatedBy

Returns a new instance of CreatedBy.



108
109
110
111
# File 'lib/stripe/resources/gift_cards/transaction.rb', line 108

def initialize(payment: nil, type: nil)
  @payment = payment
  @type = type
end

Instance Attribute Details

#paymentObject

The details for the payment that created this object.



103
104
105
# File 'lib/stripe/resources/gift_cards/transaction.rb', line 103

def payment
  @payment
end

#typeObject

The type of event that created this object.



106
107
108
# File 'lib/stripe/resources/gift_cards/transaction.rb', line 106

def type
  @type
end