Class: Stripe::CreditNoteCreateParams::Refund

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/credit_note_create_params.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.



69
70
71
72
# File 'lib/stripe/params/credit_note_create_params.rb', line 69

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.



65
66
67
# File 'lib/stripe/params/credit_note_create_params.rb', line 65

def amount_refunded
  @amount_refunded
end

#refundObject

ID of an existing refund to link this credit note to. Required when ‘type` is `refund`.



67
68
69
# File 'lib/stripe/params/credit_note_create_params.rb', line 67

def refund
  @refund
end