Class: Stripe::RefundCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::RefundCreateParams
- Defined in:
- lib/stripe/params/refund_create_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Attribute for param field amount.
-
#charge ⇒ Object
The identifier of the charge to refund.
-
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.
-
#customer ⇒ Object
Customer whose customer balance to refund from.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#instructions_email ⇒ Object
For payment methods without native refund support (e.g., Konbini, PromptPay), use this email from the customer to receive refund instructions.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#origin ⇒ Object
Origin of the refund.
-
#payment_intent ⇒ Object
The identifier of the PaymentIntent to refund.
-
#reason ⇒ Object
String indicating the reason for the refund.
-
#refund_application_fee ⇒ Object
Boolean indicating whether the application fee should be refunded when refunding this charge.
-
#reverse_transfer ⇒ Object
Boolean indicating whether the transfer should be reversed when refunding this charge.
Instance Method Summary collapse
-
#initialize(amount: nil, charge: nil, currency: nil, customer: nil, expand: nil, instructions_email: nil, metadata: nil, origin: nil, payment_intent: nil, reason: nil, refund_application_fee: nil, reverse_transfer: nil) ⇒ RefundCreateParams
constructor
A new instance of RefundCreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, charge: nil, currency: nil, customer: nil, expand: nil, instructions_email: nil, metadata: nil, origin: nil, payment_intent: nil, reason: nil, refund_application_fee: nil, reverse_transfer: nil) ⇒ RefundCreateParams
Returns a new instance of RefundCreateParams.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/stripe/params/refund_create_params.rb', line 31 def initialize( amount: nil, charge: nil, currency: nil, customer: nil, expand: nil, instructions_email: nil, metadata: nil, origin: nil, payment_intent: nil, reason: nil, refund_application_fee: nil, reverse_transfer: nil ) @amount = amount @charge = charge @currency = currency @customer = customer @expand = @instructions_email = instructions_email @metadata = @origin = origin @payment_intent = payment_intent @reason = reason @refund_application_fee = refund_application_fee @reverse_transfer = reverse_transfer end |
Instance Attribute Details
#amount ⇒ Object
Attribute for param field amount
7 8 9 |
# File 'lib/stripe/params/refund_create_params.rb', line 7 def amount @amount end |
#charge ⇒ Object
The identifier of the charge to refund.
9 10 11 |
# File 'lib/stripe/params/refund_create_params.rb', line 9 def charge @charge end |
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).
11 12 13 |
# File 'lib/stripe/params/refund_create_params.rb', line 11 def currency @currency end |
#customer ⇒ Object
Customer whose customer balance to refund from.
13 14 15 |
# File 'lib/stripe/params/refund_create_params.rb', line 13 def customer @customer end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
15 16 17 |
# File 'lib/stripe/params/refund_create_params.rb', line 15 def @expand end |
#instructions_email ⇒ Object
For payment methods without native refund support (e.g., Konbini, PromptPay), use this email from the customer to receive refund instructions.
17 18 19 |
# File 'lib/stripe/params/refund_create_params.rb', line 17 def instructions_email @instructions_email end |
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.
19 20 21 |
# File 'lib/stripe/params/refund_create_params.rb', line 19 def @metadata end |
#origin ⇒ Object
Origin of the refund
21 22 23 |
# File 'lib/stripe/params/refund_create_params.rb', line 21 def origin @origin end |
#payment_intent ⇒ Object
The identifier of the PaymentIntent to refund.
23 24 25 |
# File 'lib/stripe/params/refund_create_params.rb', line 23 def payment_intent @payment_intent end |
#reason ⇒ Object
String indicating the reason for the refund. If set, possible values are ‘duplicate`, `fraudulent`, and `requested_by_customer`. If you believe the charge to be fraudulent, specifying `fraudulent` as the reason will add the associated card and email to your [block lists](stripe.com/docs/radar/lists), and will also help us improve our fraud detection algorithms.
25 26 27 |
# File 'lib/stripe/params/refund_create_params.rb', line 25 def reason @reason end |
#refund_application_fee ⇒ Object
Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge.
27 28 29 |
# File 'lib/stripe/params/refund_create_params.rb', line 27 def refund_application_fee @refund_application_fee end |
#reverse_transfer ⇒ Object
Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount).
A transfer can be reversed only by the application that created the charge.
29 30 31 |
# File 'lib/stripe/params/refund_create_params.rb', line 29 def reverse_transfer @reverse_transfer end |