Class: Stripe::CreditNoteService::PreviewParams::Refund

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/credit_note_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount_refunded: nil, refund: nil) ⇒ Refund

Returns a new instance of Refund.



294
295
296
297
# File 'lib/stripe/services/credit_note_service.rb', line 294

def initialize(amount_refunded: nil, refund: nil)
  @amount_refunded = amount_refunded
  @refund = refund
end

Instance Attribute Details

#amount_refundedObject

Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.



290
291
292
# File 'lib/stripe/services/credit_note_service.rb', line 290

def amount_refunded
  @amount_refunded
end

#refundObject

ID of an existing refund to link this credit note to.



292
293
294
# File 'lib/stripe/services/credit_note_service.rb', line 292

def refund
  @refund
end