Class: Stripe::ApplicationFeeRefund
- Inherits:
-
APIResource
- Object
- StripeObject
- APIResource
- Stripe::ApplicationFeeRefund
- Extended by:
- Stripe::APIOperations::List
- Includes:
- Stripe::APIOperations::Save
- Defined in:
- lib/stripe/resources/application_fee_refund.rb
Overview
‘Application Fee Refund` objects allow you to refund an application fee that has previously been created but not yet refunded. Funds will be refunded to the Stripe account from which the fee was originally collected.
Related guide: [Refunding application fees](stripe.com/docs/connect/destination-charges#refunding-app-fee)
Constant Summary collapse
- OBJECT_NAME =
"fee_refund"
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary
Attributes inherited from APIResource
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Stripe::APIOperations::List
Methods included from Stripe::APIOperations::Save
Methods inherited from APIResource
class_name, custom_method, #refresh, #request_stripe_object, resource_url, save_nested_resource
Methods included from Stripe::APIOperations::Request
Methods inherited from StripeObject
#==, #[], #[]=, 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
Class Method Details
.retrieve(_id, _api_key = nil) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/stripe/resources/application_fee_refund.rb', line 29 def self.retrieve(_id, _api_key = nil) raise NotImplementedError, "Application fee refunds cannot be retrieved without an " \ "application fee ID. Retrieve an application fee refund using " \ "`ApplicationFee.retrieve_refund('fee_id', 'refund_id')`" end |
.update(_id, _params = nil, _opts = nil) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/stripe/resources/application_fee_refund.rb', line 21 def self.update(_id, _params = nil, _opts = nil) raise NotImplementedError, "Application fee refunds cannot be updated without an " \ "application fee ID. Update an application fee refund using " \ "`ApplicationFee.update_refund('fee_id', 'refund_id', " \ "update_params)`" end |
Instance Method Details
#resource_url ⇒ Object
16 17 18 19 |
# File 'lib/stripe/resources/application_fee_refund.rb', line 16 def resource_url "#{ApplicationFee.resource_url}/#{CGI.escape(fee)}/refunds" \ "/#{CGI.escape(id)}" end |