Class: Stripe::CreditNote::PreviewParams::Refund
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::CreditNote::PreviewParams::Refund
- Defined in:
- lib/stripe/resources/credit_note.rb
Instance Attribute Summary collapse
-
#amount_refunded ⇒ Object
Amount of the refund that applies to this credit note, in cents (or local equivalent).
-
#refund ⇒ Object
ID of an existing refund to link this credit note to.
Instance Method Summary collapse
-
#initialize(amount_refunded: nil, refund: nil) ⇒ Refund
constructor
A new instance of Refund.
Methods inherited from RequestParams
Constructor Details
#initialize(amount_refunded: nil, refund: nil) ⇒ Refund
Returns a new instance of Refund.
358 359 360 361 |
# File 'lib/stripe/resources/credit_note.rb', line 358 def initialize(amount_refunded: nil, refund: nil) @amount_refunded = amount_refunded @refund = refund end |
Instance Attribute Details
#amount_refunded ⇒ Object
Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
354 355 356 |
# File 'lib/stripe/resources/credit_note.rb', line 354 def amount_refunded @amount_refunded end |
#refund ⇒ Object
ID of an existing refund to link this credit note to.
356 357 358 |
# File 'lib/stripe/resources/credit_note.rb', line 356 def refund @refund end |