Class: Stripe::Terminal::Reader::Action::RefundPayment

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/terminal/reader.rb

Defined Under Namespace

Classes: RefundPaymentConfig

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#amountObject (readonly)

The amount being refunded.



376
377
378
# File 'lib/stripe/resources/terminal/reader.rb', line 376

def amount
  @amount
end

#chargeObject (readonly)

Charge that is being refunded.



378
379
380
# File 'lib/stripe/resources/terminal/reader.rb', line 378

def charge
  @charge
end

#metadataObject (readonly)

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.



380
381
382
# File 'lib/stripe/resources/terminal/reader.rb', line 380

def 
  @metadata
end

#payment_intentObject (readonly)

Payment intent that is being refunded.



382
383
384
# File 'lib/stripe/resources/terminal/reader.rb', line 382

def payment_intent
  @payment_intent
end

#reasonObject (readonly)

The reason for the refund.



384
385
386
# File 'lib/stripe/resources/terminal/reader.rb', line 384

def reason
  @reason
end

#refundObject (readonly)

Unique identifier for the refund object.



386
387
388
# File 'lib/stripe/resources/terminal/reader.rb', line 386

def refund
  @refund
end

#refund_application_feeObject (readonly)

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.



388
389
390
# File 'lib/stripe/resources/terminal/reader.rb', line 388

def refund_application_fee
  @refund_application_fee
end

#refund_payment_configObject (readonly)

Represents a per-transaction override of a reader configuration



390
391
392
# File 'lib/stripe/resources/terminal/reader.rb', line 390

def refund_payment_config
  @refund_payment_config
end

#reverse_transferObject (readonly)

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.



392
393
394
# File 'lib/stripe/resources/terminal/reader.rb', line 392

def reverse_transfer
  @reverse_transfer
end

Class Method Details

.field_remappingsObject



398
399
400
# File 'lib/stripe/resources/terminal/reader.rb', line 398

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



394
395
396
# File 'lib/stripe/resources/terminal/reader.rb', line 394

def self.inner_class_types
  @inner_class_types = { refund_payment_config: RefundPaymentConfig }
end