Class: Stripe::OrderService::UpdateParams::Credit

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



1308
1309
1310
1311
# File 'lib/stripe/services/order_service.rb', line 1308

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.



1303
1304
1305
# File 'lib/stripe/services/order_service.rb', line 1303

def gift_card
  @gift_card
end

#typeObject

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



1306
1307
1308
# File 'lib/stripe/services/order_service.rb', line 1306

def type
  @type
end