Class: Stripe::Order::UpdateParams::Credit

Inherits:
RequestParams show all
Defined in:
lib/stripe/resources/order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(gift_card: nil, type: nil) ⇒ Credit

Returns a new instance of Credit.



1657
1658
1659
1660
# File 'lib/stripe/resources/order.rb', line 1657

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

Instance Attribute Details

#gift_cardObject

The gift card to apply to the order.



1653
1654
1655
# File 'lib/stripe/resources/order.rb', line 1653

def gift_card
  @gift_card
end

#typeObject

The type of credit to apply to the order, only ‘gift_card` currently supported.



1655
1656
1657
# File 'lib/stripe/resources/order.rb', line 1655

def type
  @type
end