Class: Stripe::Terminal::ReaderRefundPaymentParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/terminal/reader_refund_payment_params.rb

Defined Under Namespace

Classes: RefundPaymentConfig

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, charge: nil, expand: nil, metadata: nil, payment_intent: nil, refund_application_fee: nil, refund_payment_config: nil, reverse_transfer: nil) ⇒ ReaderRefundPaymentParams

Returns a new instance of ReaderRefundPaymentParams.



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/stripe/params/terminal/reader_refund_payment_params.rb', line 32

def initialize(
  amount: nil,
  charge: nil,
  expand: nil,
  metadata: nil,
  payment_intent: nil,
  refund_application_fee: nil,
  refund_payment_config: nil,
  reverse_transfer: nil
)
  @amount = amount
  @charge = charge
  @expand = expand
  @metadata = 
  @payment_intent = payment_intent
  @refund_application_fee = refund_application_fee
  @refund_payment_config = refund_payment_config
  @reverse_transfer = reverse_transfer
end

Instance Attribute Details

#amountObject

A positive integer in __cents__ representing how much of this charge to refund.



16
17
18
# File 'lib/stripe/params/terminal/reader_refund_payment_params.rb', line 16

def amount
  @amount
end

#chargeObject

ID of the Charge to refund.



18
19
20
# File 'lib/stripe/params/terminal/reader_refund_payment_params.rb', line 18

def charge
  @charge
end

#expandObject

Specifies which fields in the response should be expanded.



20
21
22
# File 'lib/stripe/params/terminal/reader_refund_payment_params.rb', line 20

def expand
  @expand
end

#metadataObject

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`.



22
23
24
# File 'lib/stripe/params/terminal/reader_refund_payment_params.rb', line 22

def 
  @metadata
end

#payment_intentObject

ID of the PaymentIntent to refund.



24
25
26
# File 'lib/stripe/params/terminal/reader_refund_payment_params.rb', line 24

def payment_intent
  @payment_intent
end

#refund_application_feeObject

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.



26
27
28
# File 'lib/stripe/params/terminal/reader_refund_payment_params.rb', line 26

def refund_application_fee
  @refund_application_fee
end

#refund_payment_configObject

Configuration overrides



28
29
30
# File 'lib/stripe/params/terminal/reader_refund_payment_params.rb', line 28

def refund_payment_config
  @refund_payment_config
end

#reverse_transferObject

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.



30
31
32
# File 'lib/stripe/params/terminal/reader_refund_payment_params.rb', line 30

def reverse_transfer
  @reverse_transfer
end