Class: Stripe::CreditNotePreviewLinesService::ListParams::Refund

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



70
71
72
73
# File 'lib/stripe/services/credit_note_preview_lines_service.rb', line 70

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.



66
67
68
# File 'lib/stripe/services/credit_note_preview_lines_service.rb', line 66

def amount_refunded
  @amount_refunded
end

#refundObject

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



68
69
70
# File 'lib/stripe/services/credit_note_preview_lines_service.rb', line 68

def refund
  @refund
end